Puppet Function: sequence_array
- Defined in:
- puppet/modules/wmflib/lib/puppet/parser/functions/sequence_array.rb
- Function type:
- Ruby 3.x API
Overview
12 13 14 15 16 17 18 |
# File 'puppet/modules/wmflib/lib/puppet/parser/functions/sequence_array.rb', line 12 newfunction(:sequence_array, :type => :rvalue, :arity => 2) do |args| start = args[0].to_i count = args[1].to_i stop = start + count range = start...stop range.to_a end |