Been using Hash#map_keys all the time for a while now, sounds like they had considered that name, but nice to see more functional-style methods all the same.
I also like having yield_self functionality when prototyping in console, though my own is the much shorter alias, as. Don't think either are a good idea for readable production code, though.
2
u/Kache Dec 25 '17 edited Dec 25 '17
Been using
Hash#map_keysall the time for a while now, sounds like they had considered that name, but nice to see more functional-style methods all the same.I also like having
yield_selffunctionality when prototyping in console, though my own is the much shorter alias,as. Don't think either are a good idea for readable production code, though.