Advertisement
tyler569

Haskell ops

Apr 18th, 2017
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. >>= bind
  2. >> then
  3. *> then
  4. -> to a -> b: a to b
  5. <- bind (as it desugars to >>=)
  6. <$> (f)map
  7. <$ map-replace by 0 <$ f: "f map-replace by 0"
  8. <*> ap(ply) (as it is the same as Control.Monad.ap)
  9. $ (none, just as " " [whitespace])
  10. . pipe to a . b: "b pipe-to a"
  11. !! index
  12. ! index / strict a ! b: "a index b", foo !x: foo strict x
  13. <|> or / alternative expr <|> term: "expr or term"
  14. ++ concat / plus / append
  15. [] empty list
  16. : cons
  17. :: of type / as f x :: Int: f x of type Int
  18. \ lambda
  19. @ as go ll@(l:ls): go ll as l cons ls
  20. ~ lazy go ~(a,b): go lazy pair a, b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement