File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed
Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -536,17 +536,14 @@ Running time: `O(n)`
536536nub :: forall a. (Eq a) => List a -> List a
537537```
538538
539- Special case of ` nubBy ` : ` nubBy eq `
540-
541539#### ` nubBy `
542540
543541``` purescript
544542nubBy :: forall a. (a -> a -> Boolean) -> List a -> List a
545543```
546544
547- Remove duplicate elements from a list, using the specified function to
548- determine equality of elements. The first occurence of an element is always
549- the one that is kept.
545+ Remove duplicate elements from a list, using the specified
546+ function to determine equality of elements.
550547
551548Running time: ` O(n^2) `
552549
@@ -664,3 +661,5 @@ second components.
664661``` purescript
665662foldM :: forall m a b. (Monad m) => (a -> b -> m a) -> a -> List b -> m a
666663```
664+
665+
Original file line number Diff line number Diff line change @@ -482,17 +482,14 @@ Running time: `O(n)`
482482nub :: forall a. (Eq a) => List a -> List a
483483```
484484
485- Special case of ` nubBy ` : ` nubBy eq `
486-
487485#### ` nubBy `
488486
489487``` purescript
490488nubBy :: forall a. (a -> a -> Boolean) -> List a -> List a
491489```
492490
493- Remove duplicate elements from a list, using the specified function to
494- determine equality of elements. The first occurence of an element is always
495- the one that is kept.
491+ Remove duplicate elements from a list, using the specified
492+ function to determine equality of elements.
496493
497494Running time: ` O(n^2) `
498495
@@ -586,3 +583,5 @@ zip :: forall a b. List a -> List b -> List (Tuple a b)
586583Collect pairs of elements at the same positions in two lists.
587584
588585Running time: ` O(min(m, n)) `
586+
587+
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ import Data.Maybe
8989import Data.Tuple (Tuple (..))
9090import Data.Monoid
9191import Data.Foldable
92- import Data.Unfoldable
92+ import Data.Unfoldable ( Unfoldable , unfoldr )
9393import Data.Traversable
9494
9595import Control.Alt
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ import Data.Maybe
102102import Data.Monoid
103103import Data.Traversable
104104import Data.Tuple (Tuple (..), fst , snd )
105- import Data.Unfoldable
105+ import Data.Unfoldable ( Unfoldable , unfoldr )
106106
107107import qualified Control.Lazy as Z
108108
You can’t perform that action at this time.
0 commit comments