list contains([], []) = false // processes passed list as is. This list is empty and cannot contain items.
list contains([[]], []) = true // note: different result as for []
list contains("a", "a") = true // automatic conversion from first parameter "a" to ["a"]
list contains(["a"], "a") = true
list contains([["a"]], "a") = true // FEEL equality is applied where [e] = e
list contains(["a", "b", []], []) = true
list contains(["a", "b", [[]]], []) = true
index of([], []) = [] // processes passed list as is. This list is empty and cannot contain items.
index of([[]], []) = [1] // note: different result as for []
index of("a", "a") = [1] // automatic conversion from first parameter "a" to ["a"]
index of(["a"], "a") = [1]
index of([["a"]], "a") = [1] // FEEL equality is applied where [e] = e
index of(["a", "b", []], []) = [3]
index of (["a", "b", [[]]], []) = [3]
sublist([],1,1) = null // invalid position
sublist([[]],1,1) = [[]]
sublist("a", 1, 1) = ["a"] // automatic conversion from first parameter "a" to ["a"]
sublist(["a"], 1, 1) = ["a"]
sublist([["a"]], 1, 1) = [["a"]]
sublist(["a", "b", []], 3, 1) = [[]]
append([], 1) = [1]
append([[]], 1) = [[], 1]
append("a", 1) = ["a", 1] // automatic conversion from first parameter "a" to ["a"]
append(["a"], 1) = ["a", 1]
append([["a"]], 1) = [["a"], 1]
concatenate([], []) = []
concatenate([[]], []) = [[]]
concatenate("a", []) = ["a"] // automatic conversion from first parameter "a" to ["a"]
concatenate(["a"], []) = ["a"]
concatenate([["a"]], []) = [["a"]]
insert before([], 1, "a") = null // invalid position
insert before([[]], 1, "a") = ["a", []]
insert before("a", 1, "b") = ["b", "a"] // automatic conversion from first parameter "a" to ["a"]
insert before(["a"], 1, "b") = ["b", "a"]
insert before([["a"]], 1, "b") = ["b", ["a"]]
remove([], 1) = null // invalid position
remove([[]], 1) = []
remove("a", 1) = [] // automatic conversion from first parameter "a" to ["a"]
remove(["a"], 1) = []
remove([["a"]], 1) = []
sort([[[]], [], ["a"], [["a"]]], function (x,y) count(x) > count(y) ) = [[[]], ["a"], [["a"]], []]
reverse([]) = []
reverse([[]]) = [[]]
reverse("a") = ["a"] // automatic conversion from first parameter "a" to ["a"]
reverse(["a"]) = ["a"]
reverse([["a"]]) = [["a"]]
min([1], [2]) = [1] // return list item
max([1], [2]) = [2] // return list item
// mean(), sum(), and(), or() do arithmetic operations and therefore do never return a list
count([]) = 0
count([[]]) = 1 // note: different result as for []
count("a") = 1 // automatic conversion from first parameter "a" to ["a"]
count(["a"]) = 1
count([["a"]]) = 1
distinct values([[[]], [], "a", ["a"], [["a"]]]) = [[[]], "a"] // uses FEEL equality, preserves items, chooses for equal list items item with lower list position
flatten([[[]], [], "a", ["a"], [["a"]]]) = ["a", "a", "a"] // removes empty lists
union([[], [[]], "a", ["a"], [["a"]]], [[["a"]], ["a"], "a", [[]], []]) = [[], "a"]
// uses distinct values(concatenate())