mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
Merge 7e4bd6d17e
into bc0f1fca6c
This commit is contained in:
commit
889b20c448
@ -120,6 +120,10 @@ snd ("haskell", 1) -- 1
|
||||
-- A simple function that takes two variables
|
||||
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
|
||||
add 1 2 -- 3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user