@@ -195,6 +195,18 @@ Would return: ['a','c']
195
195
196
196
- * Type* : rvalue
197
197
198
+ difference
199
+ ----------
200
+ This function returns the difference between two arrays.
201
+ The returned array is a copy of the original array, removing any items that
202
+ also appear in the second array.
203
+
204
+ * Examples:*
205
+
206
+ difference(["a","b","c"],["b","c","d"])
207
+
208
+ Would return: [ "a"]
209
+
198
210
dirname
199
211
-------
200
212
Returns the ` dirname ` of a path.
@@ -416,6 +428,16 @@ Would return: {'a'=>1,'b'=>2,'c'=>3}
416
428
417
429
- * Type* : rvalue
418
430
431
+ intersection
432
+ -----------
433
+ This function returns an array an intersection of two.
434
+
435
+ * Examples:*
436
+
437
+ intersection(["a","b","c"],["b","c","d"])
438
+
439
+ Would return: [ "b","c"]
440
+
419
441
is_array
420
442
--------
421
443
Returns true if the variable passed to this function is an array.
@@ -868,6 +890,17 @@ Returns the type when passed a variable. Type can be one of:
868
890
869
891
- * Type* : rvalue
870
892
893
+ union
894
+ -----
895
+ This function returns a union of two arrays.
896
+
897
+ * Examples:*
898
+
899
+ union(["a","b","c"],["b","c","d"])
900
+
901
+ Would return: [ "a","b","c","d"]
902
+
903
+
871
904
unique
872
905
------
873
906
This function will remove duplicates from strings and arrays.
0 commit comments