mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 23:33:00 +03:00
Fix issue #50
This commit is contained in:
parent
c3083760f6
commit
7e4bd6d17e
@ -104,6 +104,10 @@ snd ("haskell", 1) -- 1
|
|||||||
-- A simple function that takes two variables
|
-- A simple function that takes two variables
|
||||||
add a b = a + b
|
add a b = a + b
|
||||||
|
|
||||||
|
-- Note that if you are using ghci (the Haskell interpreter)
|
||||||
|
-- You'll need to use `let`, i.e.
|
||||||
|
-- let add a b = a + b
|
||||||
|
|
||||||
-- Using the function
|
-- Using the function
|
||||||
add 1 2 -- 3
|
add 1 2 -- 3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user