at:tutorial:basic
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
at:tutorial:basic [2007/04/17 17:34] – tvcutsem | at:tutorial:basic [2007/07/18 11:29] – elisag | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | + | |
- | **This Tutorial is still under heavy construction!!** | + | |
- | </ | + | |
====== Functional and Imperative Programming ====== | ====== Functional and Imperative Programming ====== | ||
Line 34: | Line 32: | ||
</ | </ | ||
- | < | + | < |
When using the '': | When using the '': | ||
</ | </ | ||
Line 204: | Line 202: | ||
>def [get, set] := makeCell(42); | >def [get, set] := makeCell(42); | ||
>> | >> | ||
+ | >get(); | ||
+ | >>42 | ||
</ | </ | ||
Line 225: | Line 225: | ||
def total := a + b; | def total := a + b; | ||
| | ||
- | }; sum(1,2,3) | + | }; |
+ | >>< | ||
+ | >sum(1,2,3) | ||
>>6 | >>6 | ||
</ | </ | ||
Line 399: | Line 401: | ||
>>1 | >>1 | ||
> def [i, j] := [1,3] | > def [i, j] := [1,3] | ||
- | >>>[1, 3] | + | >>[1, 3] |
>{i < j}.whileTrue: | >{i < j}.whileTrue: | ||
1 | 1 | ||
Line 456: | Line 458: | ||
>>[2, 4, 5, 6, 8, 37] | >>[2, 4, 5, 6, 8, 37] | ||
</ | </ | ||
+ | |||
+ | AmbientTalk has no '' |
at/tutorial/basic.txt · Last modified: 2020/02/09 22:05 by elisag