Open treeowl opened 6 years ago
containers is adding Data.Containers.ListUtils in the next version with
containers
Data.Containers.ListUtils
nubOrd :: Ord a => [a] -> [a] nubOrdOn :: Ord b => (a -> b) -> [a] -> [a] nubInt :: [Int] -> [Int] nubIntOn :: (a -> Int) -> [a] -> [a]
I think it might make sense for this package to offer similar functions:
nubTrieKey :: TrieKey a => [a] -> [a] nubTrieKeyOn :: TrieKey b => (a -> b) -> [a] -> [a]
These would greatly generalize nubInt and nubIntOn.
nubInt
nubIntOn
containers
is addingData.Containers.ListUtils
in the next version withI think it might make sense for this package to offer similar functions:
These would greatly generalize
nubInt
andnubIntOn
.