Portability | portable |
---|---|
Stability | provisional |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | None |
Traversals for manipulating parts of a list.
Partial Lenses
_head :: SimpleIndexedTraversal Int [a] aSource
_last :: SimpleIndexedTraversal Int [a] aSource
A Traversal
reading and writing to the last element of a non-empty list
>>>
[1,2]^!?_last
2