Skip to content
instance method

Set#each

() { (A) -> void } -> self
() -> ::Enumerator[A, self]
each { |o| ... } → self
each → enumerator

Calls the given block once for each element in the set, passing the element as parameter. Returns an enumerator if no block is given.

See also #divide #empty? #disjoint? #encode_with also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0