mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 01:51:38 +00:00
Fixed missing + sign in lambda section
This commit is contained in:
parent
9862212ed1
commit
760fee2ba8
@ -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