class Concurrent::LockFreeStack
def each(head = nil)
-
(self)
-
Parameters:
-
head
(Node
) --
def each(head = nil) return to_enum(:each, head) unless block_given? it = head || peek until it.equal?(EMPTY) yield it.value it = it.next_node end self end