diff options
Diffstat (limited to 'lib/zipper.mli')
-rw-r--r-- | lib/zipper.mli | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zipper.mli b/lib/zipper.mli index beeb181..e25d57b 100644 --- a/lib/zipper.mli +++ b/lib/zipper.mli | |||
@@ -198,6 +198,10 @@ val map_after : ('a -> 'a) -> 'a zipper -> 'a zipper | |||
198 | val map_focus : ('a -> 'a) -> 'a zipper -> 'a zipper | 198 | val map_focus : ('a -> 'a) -> 'a zipper -> 'a zipper |
199 | (** Map a function over the element focused by the cursor, if any. *) | 199 | (** Map a function over the element focused by the cursor, if any. *) |
200 | 200 | ||
201 | val map_focus_or : default:'a -> ('a -> 'a) -> 'a zipper -> 'a zipper | ||
202 | (** Map a function over the element focused by the cursor. Push | ||
203 | [default] if no element is focused. *) | ||
204 | |||
201 | val map : ('a -> 'a) -> 'a zipper -> 'a zipper | 205 | val map : ('a -> 'a) -> 'a zipper -> 'a zipper |
202 | (** Map a function over all elements of a zipper. *) | 206 | (** Map a function over all elements of a zipper. *) |
203 | 207 | ||