It has been brought to my attention that there are a number of the functions that were added as part of the "iteration in the puppet language" work that there isn't any kind of general agreement on their value.
I think the list of functions in question is: * map * reduce * filter * slice The use cases for each of these come down to various forms of data manipulation. Map, for instance, can be used to place a prefix or suffix on some, or all of the elements of a list. Filter is used when only a subset of elements is wanted. Slice is to produce groupings of elements in a list. Reduce is the oddest one of the bunch, it is the actual "foreach" loop that everyone is familiar with from languages with mutable variables, but in a very different form. Are these functions too much? Should they be left out? -- Andrew Parker [email protected] Freenode: zaphod42 Twitter: @aparker42 Software Developer *Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September 22-24 in San Francisco* *Register by May 30th to take advantage of the Early Adopter discount <http://links.puppetlabs.com/puppetconf-early-adopter> **—**save $349!* -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/CANhgQXvG8Xkv9d4tDBMWeJvLk%3DffdmaCeXA4FfKm33JvvnjPPA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
