Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5836

Splat operator should turn Iterator into an array

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.4.0
    • Component/s: Docs
    • Labels:
      None
    • Template:
    • Story Points:
      1
    • Sprint:
      Language 2016-02-10, Language 2016-02-24
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      It is possible to produce an Array from Iterator values by using the splat operator. As an example the expression:

      *[1,2,3].reverse_each

      produces [3,2,1]
      Show
      It is possible to produce an Array from Iterator values by using the splat operator. As an example the expression: *[1,2,3].reverse_each produces [3,2,1]

      Description

      This currently fails:

      notify {'splatted_iterator':
        message => *[1,2,3].reverse_each
      }
      

      The splat operator should produce an Array of each value from the Iterator.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                henrik.lindberg Henrik Lindberg
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support