@@ -195,6 +195,18 @@ Would return: ['a','c']
195195
196196- * Type* : rvalue
197197
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+
198210dirname
199211-------
200212Returns the ` dirname ` of a path.
@@ -416,6 +428,16 @@ Would return: {'a'=>1,'b'=>2,'c'=>3}
416428
417429- * Type* : rvalue
418430
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+
419441is_array
420442--------
421443Returns 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:
868890
869891- * Type* : rvalue
870892
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+
871904unique
872905------
873906This function will remove duplicates from strings and arrays.
0 commit comments