Struggling over inject()? Here are two links to help

Posted by amy in Ruby Add comments

First, Gregory Brown talks about inject and functional programming. Really, if you’re having issues with Assignment #2, do yourself a favor and head on over.

Second: can’t get your head around the name inject()? I don’t think it’s a particularly clearly-named method, and I found this discussion very helpful when I was trying to understand it.

One Response to “Struggling over inject()? Here are two links to help”

  1. john Says:

    Nowadays people would probably name .inject .reduce (see http://en.wikipedia.org/wiki/MapReduce).

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login