Skip to content

Commit

Permalink
Merge pull request #10 from purescript/fix-without
Browse files Browse the repository at this point in the history
Reverse the order of the arguments to \\
  • Loading branch information
paf31 committed May 30, 2014
2 parents 74003bc + 9b45e5d commit fc75a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Data/Array.purs
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ infix 5 \\
(\\) :: forall a. (Eq a) => [a] -> [a] -> [a]
(\\) xs ys = go xs ys
where
go [] ys = ys
go _ [] = []
go (x:xs) ys = go xs (delete x ys)
go xs [] = xs
go [] _ = []
go xs (y:ys) = go (delete y xs) ys

intersectBy :: forall a. (a -> a -> Boolean) -> [a] -> [a] -> [a]
intersectBy _ [] _ = []
Expand Down

0 comments on commit fc75a33

Please sign in to comment.