Issue #18764 has been updated by Henrik Lindberg. Keywords set to collections functions language
---------------------------------------- Feature #18764: Add support for enumerable methods/functions https://projects.puppetlabs.com/issues/18764#change-81505 Author: Henrik Lindberg Status: Unreviewed Priority: Normal Assignee: Category: functions Target version: Affected Puppet version: Keywords: collections functions language Branch: With the addition of lambdas/methods in #11331 it is very simple to also add support for additional operations on "collections" (arrays and hashes). As an example, this would select all strings in the array $a that ends in ".com": $dot_com_strings = $a.select {|$x| = $x =~ /\.com$/ } Propose that the following are added: * collect * select * reject * reduce * count / length / size * all * any - this is a variant on the explicit "in" operator -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to puppet-bugs@googlegroups.com. To unsubscribe from this group, send email to puppet-bugs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.