Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Rinda::Tuple#each
each() { |k, v| ... }
lib/rinda/rinda.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rinda/rinda.rb, line 86
def each # FIXME
if Hash === @tuple
@tuple.each { |k, v| yield(k, v) }
else
@tuple.each_with_index { |v, k| yield(k, v) }
end
end
Iterate through the tuple, yielding the index or key, and the value, thus ensuring arrays are iterated similarly to hashes.