User Tools

Site Tools


at:tutorial:basic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
at:tutorial:basic [2007/04/05 14:03] elisagat:tutorial:basic [2007/04/05 14:04] elisag
Line 153: Line 153:
 In AmbientTalk, blocks are merely syntactic sugar for anonymous closures (aka lambdas).  Blocks are creating using the {} braces in the form of: In AmbientTalk, blocks are merely syntactic sugar for anonymous closures (aka lambdas).  Blocks are creating using the {} braces in the form of:
 <code> <code>
-{ | <parlist> | <body>}+{ |<parlist>| <body> }
 </code> </code>
 If the block do not require any parameter, the |<parlist>| can be omitted.  Consider a basic block to sum two numbers: If the block do not require any parameter, the |<parlist>| can be omitted.  Consider a basic block to sum two numbers:
at/tutorial/basic.txt · Last modified: 2020/02/09 22:05 by elisag