I would like them kept. These are items that I often have to fall back into
Ruby to use and it's nice to have them exposed. Otherwise, it's either an
inline template or a custom function (doing the exact same thing).

Trevor


On Tue, Aug 5, 2014 at 9:01 PM, Andy Parker <[email protected]> wrote:

> 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
> <https://groups.google.com/d/msgid/puppet-dev/CANhgQXvG8Xkv9d4tDBMWeJvLk%3DffdmaCeXA4FfKm33JvvnjPPA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
[email protected]

-- This account not approved for unencrypted proprietary information --

-- 
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/CANs%2BFoUWovKdEVse33L%3DLwXnJZEATTDDAcVgH%3DgpTG8H9QdYjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to