views:

56

answers:

1

Are the functions accumulate, compress, fold & reduce synonyms?

+4  A: 

Well, it depends on the language. It is a common function with different names in different languages.
See: Wikipedia entry

But yes, it's commonly known as the names you mentioned plus inject.
The wikipedia entry has a more comprehensive list of its aliases in several languages.

NullUserException
@NullUserException:and also some of these names are used for slighlty different (or even completely different) meanings. Like compress to call some compression algorithm.
kriss