mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 06:17:36 +02:00
Changed 'calls
' to 'applies' before someone else does
This commit is contained in:
@@ -245,7 +245,7 @@ case args of
|
|||||||
_ -> putStrLn "bad args"
|
_ -> putStrLn "bad args"
|
||||||
|
|
||||||
-- Haskell doesn't have loops because it uses recursion instead.
|
-- Haskell doesn't have loops because it uses recursion instead.
|
||||||
-- map calls a function over every element in an array
|
-- map applies a function over every element in an array
|
||||||
|
|
||||||
map (*2) [1..5] -- [2, 4, 6, 8, 10]
|
map (*2) [1..5] -- [2, 4, 6, 8, 10]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user