Inject and reduce method

Anybody say more about inject and reduce methods in Array as well as
Hash.
if we can use those methods other than those classes than sing that too.
waiting to listen.

inject & reduce are the same method defined in Enumerable Module,
so each class which include that Module can have the methods

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs