Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. addTwo :: Int -> Int -> Int
  2. addTwo x y = x + y
  3.  
  4. Prelude> let addTwo x y = x + y
  5.  
  6. Prelude> :{
  7. Prelude| let addTwo :: Int -> Int -> Int
  8. Prelude| addTwo x y = x + y
  9. Prelude| :}
  10. Prelude> addTwo 4 7
  11. 11
  12.  
  13. Prelude> let addTwo :: Int -> Int -> Int ; addTwo x y = x + y
  14.  
  15. Prelude> :set +m
  16. Prelude> let addTwo :: Int -> Int -> Int
  17. Prelude| addTwo x y = x + y
  18. Prelude|
  19. Prelude> addTwo 1 3
  20. 4
  21.  
  22. Prelude> :{
  23. Prelude| let addTwo :: Int -> Int -> Int
  24. Prelude| addTwo x y = x + y
  25. Prelude| :}
  26. Prelude> addTwo 2 3
  27. 5
  28.  
  29. λ> (1
  30. *Tutorial.R4 Motivation.RecursiveList Tutorial.A Tutorial.C0 Tutorial.C1 Tutorial.C2 Tutorial.D0 Tutorial.D1 Tutorial.F0 Tutorial.F1 Tutorial.F2 Tutorial.F3 Tutorial.F4 Tutorial.F5 Tutorial.F6 Tutorial.G0 Tutorial.G1 Tutorial.G2 Tutorial.G3 Tutorial.G4 Tutorial.G5 Tutorial.H0 Tutorial.H1 Tutorial.H2 Tutorial.I0 Tutorial.I1 Tutorial.I2 Tutorial.I3 Tutorial.I4 Tutorial.I5 Tutorial.I6 Tutorial.I7 Tutorial.K0 Tutorial.K1 Tutorial.K2 Tutorial.K3 Tutorial.M0 Tutorial.M1 Tutorial.M2 Tutorial.M3 Tutorial.N0 Tutorial.N1 Tutorial.N2 Tutorial.N3 Tutorial.O0 Tutorial.O1 Tutorial.O2 Tutorial.P Tutorial.Q Tutorial.R0 Tutorial.R1 Tutorial.R2 Tutorial.R3 Tutorial.R4 Conduit Data.Monoid| )
  31. 1
  32. λ>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement