File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -586,12 +586,12 @@ toUnfoldable m = unfoldr go (m : Nil) where
586
586
go $ left : singleton k1 v1 : mid : singleton k2 v2 : right : tl
587
587
588
588
-- | Convert a map to an unfoldable structure of key/value pairs
589
- --
590
- -- While this traversal is up to 10% faster in benchmarks than `toUnfoldable`,
591
- -- it leaks the underlying map stucture, making it only suitable for applications
592
- -- where order is irrelevant.
593
- --
594
- -- If you are unsure, use `toUnfoldable`
589
+ -- |
590
+ -- | While this traversal is up to 10% faster in benchmarks than `toUnfoldable`,
591
+ -- | it leaks the underlying map stucture, making it only suitable for applications
592
+ -- | where order is irrelevant.
593
+ -- |
594
+ -- | If you are unsure, use `toUnfoldable`
595
595
toUnfoldableUnordered :: forall f k v . Unfoldable f => Map k v -> f (Tuple k v )
596
596
toUnfoldableUnordered m = unfoldr go (m : Nil ) where
597
597
go Nil = Nothing
You can’t perform that action at this time.
0 commit comments