| Copyright | (c) 2021-2022 Kowainik |
|---|---|
| License | MPL-2.0 |
| Maintainer | Kowainik <xrom.xkov@gmail.com> |
| Stability | Stable |
| Portability | Portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Slist.Containers
Description
Useful combinators to work with the data structures from containers package
and Slist together.
Since: 0.2.0.0
Map
mapToVals :: Map k v -> Slist v #
O(n).
Returns a Slist of all values of the map in the ascending order of their keys.
Since: 0.2.0.0
mapToKeys :: Map k v -> Slist k #
O(n).
Returns a Slist of all keys of the map in the ascending order.
Since: 0.2.0.0
mapToPairs :: Map k v -> Slist (k, v) #
O(n).
Returns a Slist of all key-value pairs of the map in the ascending order of their keys.
Since: 0.2.0.0
Set
setToSlist :: Set a -> Slist a #
O(n).
Returns a Slist of all elements of the set in the ascending order.
Since: 0.2.0.0