You are viewing a single comment's thread. Return to all comments →
You don't actually have to convert this to a lambda. This should do: a.reduce(:^)
a.reduce(:^)
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
You don't actually have to convert this to a lambda. This should do:
a.reduce(:^)