RosettaCodeData/Task/Documentation/Lambdatalk/documentation.lambdatalk

10 lines
334 B
Plaintext

'{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