Skip to content

Commit f80754d

Browse files
authored
Merge pull request #150 from ewaldgrusk/align-the-nubByEq-example-with-the-other-ones
Align the `nubByEq` example with the `unionBy` example and the `deleteBy` example
2 parents b709a3c + a20a1dd commit f80754d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Data/Array.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,8 @@ nubBy comp xs = case head indexedAndSorted of
921921
-- | relation.
922922
-- |
923923
-- | ```purescript
924-
-- | nubByEq (\a b -> a `mod` 3 == b `mod` 3) [1, 3, 4, 5, 6] = [1,3,5]
924+
-- | mod3eq a b = a `mod` 3 == b `mod` 3
925+
-- | nubByEq mod3eq [1, 3, 4, 5, 6] = [1, 3, 5]
925926
-- | ```
926927
-- |
927928
nubByEq :: forall a. (a -> a -> Boolean) -> Array a -> Array a

0 commit comments

Comments
 (0)