Advertisement
Guest User

Untitled

a guest
Feb 9th, 2022
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (=@|) :: (Foldable t, Eq a) => a -> t a -> Bool
  2. (=@|) = elem
  3. (=@) :: (Foldable t, Eq a) => a -> t a -> Bool
  4. (=@) = elem
  5. (|@=) :: (Foldable t, Eq a) => t a -> a -> Bool
  6. (|@=) x y = y `elem` x
  7.  
  8. (@=@) :: (Foldable t1, Foldable t2, Eq a) => t1 a -> t2 a -> Bool
  9. (@=@) x y = foldr (\a b -> elem a y || b) False x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement