Rosetta Code : similar programs written in various languages
rosettacode.org
rosettacode.org
module Enumerable
def custom_flatten
inject([]) do |result, element|
if element.respond_to?(:custom_flatten)
result.concat(element.custom_flatten)
else
result.push(element)
end
end
end
end
Works on all Enumerables (Array, Hash, Set, etc)We have workers now. But seriously, it is an amazing resource. I was looking this stuff up on wikipedia but that has almost no detail.
There are fewer better forms of entertainment for geeks than eating pizza while discussing common programming expressions implemented in bizarre and obscure languages.
I helped out with RosettaCode a few years back, hosted it for a little while on my SliceHost instance when they had some trouble. My <a href="http://rosettacode.org/wiki/User:Mwn3d>good friend</a> contributes all the time.
Glad to see the site still exists and is flourishing, albeit slowly.
Site grows slowly because it's growing steadily. Well, that, and I haven't had the time to set up income or the really nice features that would depend on it. :)
If you ever hit the GRR area, I need to buy you a drink.