Module Daml.Finance.Util.Common¶
Functions¶
- mapWithIndex
: (a -> Int -> b) -> [a] -> [b]
Like
map
, but the mapping function includes the zero-based index of the item.
- sortAndGroupOn
: Ord k => (a -> k) -> [a] -> [[a]]
Like
List.groupOn
, but sorts the list first.