Array#map magic tips with &: [1,2,3].each_with_object(1).map(&:+)# => [2, 3, 4]# Same outcome, even shorter[1, 2, 3].map(&1.method(:+))# => [2, 3, 4]
Array#map magic tips with &:
[1,2,3].each_with_object(1).map(&:+)# => [2, 3, 4]# Same outcome, even
shorter[1, 2, 3].map(&1.method(:+))# => [2, 3, 4]

jay16/local_web,jay16/local_web