Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addTwo :: Int -> Int -> Int
- addTwo x y = x + y
- Prelude> let addTwo x y = x + y
- Prelude> :{
- Prelude| let addTwo :: Int -> Int -> Int
- Prelude| addTwo x y = x + y
- Prelude| :}
- Prelude> addTwo 4 7
- 11
- Prelude> let addTwo :: Int -> Int -> Int ; addTwo x y = x + y
- Prelude> :set +m
- Prelude> let addTwo :: Int -> Int -> Int
- Prelude| addTwo x y = x + y
- Prelude|
- Prelude> addTwo 1 3
- 4
- Prelude> :{
- Prelude| let addTwo :: Int -> Int -> Int
- Prelude| addTwo x y = x + y
- Prelude| :}
- Prelude> addTwo 2 3
- 5
- λ> (1
- *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| )
- 1
- λ>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement