X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fzip.rb;h=120d097201188d56e9f6c6a6d024ca9a4f220b33;hp=87a89f82455f12ac5e6ff9039414d474b9e8635b;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/zip.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/zip.rb index 87a89f824..120d09720 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/zip.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/zip.rb @@ -3,15 +3,15 @@ # module Puppet::Parser::Functions newfunction(:zip, :type => :rvalue, :doc => <<-DOC - Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments. + @summary + Takes one element from first array and merges corresponding elements from second array. - *Example:* + @return + This generates a sequence of n-element arrays, where n is one more than the count of arguments. - zip(['1','2','3'],['4','5','6']) - - Would result in: - - ["1", "4"], ["2", "5"], ["3", "6"] + @example + zip(['1','2','3'],['4','5','6']) + Would result in: ["1", "4"], ["2", "5"], ["3", "6"] DOC ) do |arguments|