Why does the 'map' method always return an Array? It doesn't matter what you call it on, even for Hashes and subclasses of Array, the 'map' method always returns a plain Array? Why?
This has to do with how 'map' is implemented, the Enumberable module and mixin modules in general.
Comments
No comments yet. Leave a Comment
