pibfi
.
Exported Functions | |
---|---|
decrement/2 | Decrements the value at the current position on the tape N times. |
head/1 | |
increment/2 | Increments the value at the current position on the tape N times. |
left/2 | Moves the read/write head N positions left on the tape. |
new/1 | Creates and returns a new dynarray-backed tape. |
peek/2 | |
poke/3 | |
read/1 | Returns the value at the current position on the tape. |
right/2 | Moves the read/write head N positions right on the tape. |
write/2 | Places the given value at the current position on the tape. |
decrement(tape(), N::integer()) -> tape()
Decrements the value at the current position on the tape N times.
head(Arg1) -> term()
increment(tape(), N::integer()) -> tape()
Increments the value at the current position on the tape N times.
left(tape(), N::integer()) -> {tape(), integer()}
Moves the read/write head N positions left on the tape.
Creates and returns a new dynarray-backed tape.
peek(Arg1, Arg2) -> term()
poke(Arg1, Arg2, Arg3) -> term()
read(tape()) -> integer()
Returns the value at the current position on the tape.
right(tape(), N::integer()) -> {tape(), integer()}
Moves the read/write head N positions right on the tape.
write(tape(), integer()) -> {tape(), integer()}
Places the given value at the current position on the tape.