0 | module Data.SortedSet.Extra
2 | import Data.SortedSet
8 | mapIn : Ord b => (a -> b) -> SortedSet a -> SortedSet b
9 | mapIn f = fromList . map f . Prelude.toList
12 | mapInMaybe : Ord b => (a -> Maybe b) -> SortedSet a -> SortedSet b
13 | mapInMaybe f = fromList . mapMaybe f . Prelude.toList
16 | fromFoldable : Ord a => Foldable f => f a -> SortedSet a
17 | fromFoldable = foldl insert' empty