puppetlabs / puppet-specifications

Specification of the Puppet Language, Catalog, Extension points
Other
99 stars 66 forks source link

(PUP-5772) Specify the Iterable and Iterator types. #65

Closed hlindberg closed 8 years ago

hlindberg commented 8 years ago

This adds the Iterable and Iterator types to the specification. They are introduced in Puppet 4.4.0.

igalic commented 8 years ago

Do i understand this correctly, that developers can create their own Iterators?

hlindberg commented 8 years ago

@igalic Yes basically - we have the type Iterator[T] which makes it possible to return an iterator to puppet - see the implementation of the step function in puppet as an example.