mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
32 lines
825 B
Go
32 lines
825 B
Go
|
package arrays
|
||
|
|
||
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
||
|
|
||
|
func NewLib() map[string]core.Function {
|
||
|
return map[string]core.Function{
|
||
|
"APPEND": Append,
|
||
|
"FIRST": First,
|
||
|
"FLATTEN": Flatten,
|
||
|
"INTERSECTION": Intersection,
|
||
|
"LAST": Last,
|
||
|
"MINUS": Minus,
|
||
|
"NTH": Nth,
|
||
|
"OUTERSECTION": Outersection,
|
||
|
"POP": Pop,
|
||
|
"POSITION": Position,
|
||
|
"PUSH": Push,
|
||
|
"REMOVE_NTH": RemoveNth,
|
||
|
"REMOVE_VALUE": RemoveValue,
|
||
|
"REMOVE_VALUES": RemoveValues,
|
||
|
"REVERSE": Reverse,
|
||
|
"SHIFT": Shift,
|
||
|
"SLICE": Slice,
|
||
|
"SORTED": Sorted,
|
||
|
"SORTED_UNIQUE": SortedUnique,
|
||
|
"UNION": Union,
|
||
|
"UNION_DISTINCT": UnionDistinct,
|
||
|
"UNIQUE": Unique,
|
||
|
"UNSHIFT": Unshift,
|
||
|
}
|
||
|
}
|