-
Notifications
You must be signed in to change notification settings - Fork 0
lambda
pannous edited this page Mar 24, 2021
·
4 revisions
lambda see closures
The javascript closures notation x => x*x is beautiful but a bit hard to type
square = x :: x*x
// could confuse c++ folks etc
Are the concepts of map and closure unifyable? Ifs so one might simply write
square = x : x*x todo LHS of ':' could be an expression, a symbol or a string square = "x" : "OK" adhoc map.
square x := x*x only makes sense for named functions