A zipper for List.
Zipper typeZipperConstruct a Zipper focussed on the first element of a singleton list.
Construct a Zipper from a list. The Zipper will focus on the first element (if there is a first element).
Provide an alternative when constructing a Zipper fails.
Returns all elements before the element the Zipper is focussed on.
Returns the element the Zipper is currently focussed on.
Returns all elements after the element the Zipper is focussed on
Reconstruct the list.
Apply a function to every element in the Zipper.
Apply a function to all elements before the element the Zipper is focussed on.
Apply a function to the element the Zipper is focussed on.
Apply a function to all elements after the element the Zipper is focussed on.
Move the focus to the first element of the list.
Move the focus to the element before the element the Zipper is currently focussed on (if there is such an element).
Move the focus to the element after the element the Zipper is currently focussed on (if there is such an element).
Move the focus to the last element of the list.
Returns a Zipper focussed on the first element for which the predicate returns True (starting from a given Zipper). Note that this function does not search the entire list, but starts searching from the current element.
Returns a Zipper focussed on the first element for which the predicate returns True (starting from the first element of a given Zipper).
Returns a Zipper focussed on the first element for which the predicate returns True (starting from the next element of a given Zipper if there is a next element).
The
Zippertype.