Method |
Description |
|
__construct ( $front, $back ) |
|
|
advance ( $t, $n ) : Original |
Iterated hole advancement. |
|
delete ( ) : Original |
Delete contents of current hole, shifting hole to
next element. |
|
done ( ) : boolean |
Returns true if we are at the end of the list. |
|
fromArray ( $array ) : Tuple |
Creates a zipper from an array, with a hole in the
0-index position. |
|
insertAfter ( $t ) |
Insert element after hole. |
|
insertBefore ( $t ) |
Insert element before hole. |
|
next ( $t ) : Original |
Move hole to the next element. |
|
prev ( $t ) : Original |
Move hole to the previous element |
|
splice ( $t, $delete, $replacement ) |
Splice in multiple elements at hole. Functional specification
in terms of array_splice: |
|
toArray ( $t = NULL ) |
Convert zipper back into a normal array, optionally filling in
the hole with a value. (Usually you should supply a $t, unless you
are at the end of the array.) |
|