class Async::List
def include?(needle)
@parameter needle [Node] The node to search for.
Determine whether the given node is included in the list.
def include?(needle) self.each do |item| return true if needle.equal?(item) end return false end
def include?(needle) self.each do |item| return true if needle.equal?(item) end return false end