Portability | Rank2Types |
---|---|
Stability | provisional |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Safe Haskell | Safe-Infered |
- at :: Int -> SimpleIndexedLens Int (IntMap v) (Maybe v)
- traverseIntMap :: IndexedTraversal Int (IntMap v) (IntMap v') v v'
- traverseAt :: Int -> SimpleIndexedTraversal Int (IntMap v) v
- traverseAtMin :: SimpleIndexedTraversal Int (IntMap v) v
- traverseAtMax :: SimpleIndexedTraversal Int (IntMap v) v
Documentation
traverseIntMap :: IndexedTraversal Int (IntMap v) (IntMap v') v v'Source
Traversal of an IntMap
indexed by the key.
traverseAt :: Int -> SimpleIndexedTraversal Int (IntMap v) vSource
Traverse the value at a given key in an IntMap
traverseAt :: Applicative f => Int -> (v -> f v) -> IntMap v -> f (IntMap v) traverseAt k = at k . traverse
traverseAtMin :: SimpleIndexedTraversal Int (IntMap v) vSource
Traverse the value at the minimum key in a Map
The key of the minimum element is available as the index.
traverseAtMax :: SimpleIndexedTraversal Int (IntMap v) vSource
Traverse the value at the maximum key in a Map