oK()

What does ok() do?

oK() returns an offset of the array inside by K

from ArrayExpressions import arrex
lst = [1, 2, 3, 4, 5]
output = arrex.evaluate(lst, "o2(x)")
print(output) # [3, 4, 5]

Other Important Information:

InputAny array or string
Does it create a new scope?No
OutputWill output the offset array or string
KAny number
IThe K value
Exampleo2(e1(x + 1))
Example ExplanationThis will go through every element, starting at the third one (index 2) and return an array with every element + 1 aside from the first two, because o2() offset past them.

eK()

sK()