OptionalinitSequence: number[]the value at this location, or -1 if the location was invalid
inverts all of the values of the current state
returns the length of the given state
a number 0 or above
adds unset cells so that it is of length n.
the length of the sequence
pushes a new value to the current sequence state
can accept a number or boolean.
repeats the sequence val times returning a sequence of size val * original sequence
the number of times you would like to repeat. 1 returns itself. 0 returns nothing
repeats or cuts the current sequence so that it is of length n.
the length of the sequence
gets the value at a specified position
the value at this location, or -1 if the location was invalid
shifts the sequence in the amount of val
a positive or negative number that controls the direction of the shift
adds a new value to the front of current sequence state
can accept a number or boolean.
provides the value of the state at this given moment of computation.
the sequence as a numeric array
gets the value at a specified position