mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Merge pull request #656 from tormaroe/patch-1
Fixed missing + sign in lambda section
This commit is contained in:
commit
ec800a5d14
@ -153,8 +153,8 @@ undefined ; user to indicate a value that hasn't been set
|
||||
|
||||
; Lambdas in Whip are declared with the `lambda` or `->` function.
|
||||
; And functions are really just lambdas with names.
|
||||
(def my_function (-> (x y) (+ (x y) 10)))
|
||||
; | | | |
|
||||
(def my_function (-> (x y) (+ (+ x y) 10)))
|
||||
; | | | |
|
||||
; | | | returned value(with scope containing argument vars)
|
||||
; | | arguments
|
||||
; | lambda declaration function
|
||||
|
Loading…
Reference in New Issue
Block a user