fREWdiculous!
9 Jan
So recently I was asking if andand exists in perl (here and here) and someone implemented it! How awesome is that? See it here.
Anyway, so I looked at the code and figured, “Well heck, if it’s that easy, I should do this for map and join on arrays!”
It was already done! The autobox::Core module does it already! You have to use more javascript-y syntax instead of regular perl-ish, but I think it makes things more clear anyway.
Example:
1 2 3 4 5 6 7 |
To be perfectly clear, you would probably think of the first one as: we are joining the results of the map that multiplies each item by two and the second one as: multiply each item by two and then join them with a comma.
Anyway, I am *so* stoked to use this at work.