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/05/15 19:36] – * tvcutsem | at:tutorial:basic [2007/12/04 15:16] – *Fixed mstevens | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | + | |
- | **This Tutorial is still under heavy construction!!** | + | |
- | </ | + | |
====== Functional and Imperative Programming ====== | ====== Functional and Imperative Programming ====== | ||
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 339: | Line 341: | ||
>> | >> | ||
</ | </ | ||
+ | |||
==== Tables ==== | ==== Tables ==== | ||
- | We have already | + | We have already |
< | < | ||
> | > | ||
Line 399: | Line 402: | ||
>>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 459: | ||
>>[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