Merge remote-tracking branch 'pr/56' into pull-56
[puppet_stdlib.git] / lib / puppet / parser / functions / range.rb
index 03ab9e9..0849491 100644 (file)
@@ -15,10 +15,19 @@ an array.
 
 Will return: [0,1,2,3,4,5,6,7,8,9]
 
+    range("00", "09")
+
+Will return: [0,1,2,3,4,5,6,7,8,9] (Zero padded strings are converted to
+integers automatically)
+
     range("a", "c")
 
 Will return: ["a","b","c"]
 
+    range("host01", "host10")
+
+Will return: ["host01", "host02", ..., "host09", "host10"]
+
 Passing a third argument will cause the generated range to step by that 
 interval, e.g.