Method: Immutable::Map#foldr
- Defined in:
- lib/immutable/map.rb
#foldr(e) ⇒ Object
Folds the values in self from right to left.
86 87 88 |
# File 'lib/immutable/map.rb', line 86 def foldr(e) foldr_with_key(e) { |k, v, x| yield(v, x) } end |