gistlib
other ruby categories
enumerable code snippets in ruby
explain `[3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5].chunk { |n| n.even? }.each { |even, ary| p [even, ary] }` in ruby
explain `e = (1..3).chain([4, 5]) e.to_a #=> [1, 2, 3, 4, 5]` in ruby
find the keys of a map in ruby
find the mode of all keys in a map in ruby
find the mode of all values in a map in ruby
find the range of all keys in a map in ruby
find the smallest key in a map in ruby
split a map into two maps in ruby
teach me how to use `each_cons` in ruby
what does it mean `[nil, true, 99].all? ` in ruby
gistlib
by LogSnag