Module pibfi_tape_dynarray

Description

dynarray backend for tape ADT for pibfi.

Function Index

Exported Functions
decrement/2Decrements the value at the current position on the tape N times.
head/1
increment/2Increments the value at the current position on the tape N times.
left/2Moves the read/write head N positions left on the tape.
new/1Creates and returns a new dynarray-backed tape.
peek/2
poke/3
read/1Returns the value at the current position on the tape.
right/2Moves the read/write head N positions right on the tape.
write/2Places the given value at the current position on the tape.

Exported Functions

decrement/2

decrement(tape(), N::integer()) -> tape()

Decrements the value at the current position on the tape N times.

head/1

head(Arg1) -> term()

increment/2

increment(tape(), N::integer()) -> tape()

Increments the value at the current position on the tape N times.

left/2

left(tape(), N::integer()) -> {tape(), integer()}

Moves the read/write head N positions left on the tape.

new/1

new([option()]) -> tape()

Creates and returns a new dynarray-backed tape.

peek/2

peek(Arg1, Arg2) -> term()

poke/3

poke(Arg1, Arg2, Arg3) -> term()

read/1

read(tape()) -> integer()

Returns the value at the current position on the tape.

right/2

right(tape(), N::integer()) -> {tape(), integer()}

Moves the read/write head N positions right on the tape.

write/2

write(tape(), integer()) -> {tape(), integer()}

Places the given value at the current position on the tape.