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:
Input | Any array or string |
---|---|
Does it create a new scope? | No |
Output | Will output the offset array or string |
K | Any number |
I | The K value |
Example | o2(e1(x + 1)) |
Example Explanation | This 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. |