Are the functions accumulate
, compress
, fold
& reduce
synonyms?
views:
56answers:
1
+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
2010-09-10 05:14:45
@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
2010-09-11 13:17:19