10 lines
334 B
Text
10 lines
334 B
Text
|
|
'{def add // define the name
|
||
|
|
{lambda {:a :b} // for a function with two arguments
|
||
|
|
{+ :a :b} // whose body calls the + primitive on them
|
||
|
|
} // end function
|
||
|
|
} // end define
|
||
|
|
-> add
|
||
|
|
|
||
|
|
'{add 3 4} // call the function on two values
|
||
|
|
-> 7 // the result
|