Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Rinda::Tuple#each

each() { |k, v| ... }

Iterate through the tuple, yielding the index or key, and the value, thus ensuring arrays are iterated similarly to hashes.

See also #[] #fetch .new #hash? also in 3.2 · 3.1 · 3.0