at:tutorial:modular
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| at:tutorial:modular [2013/02/26 15:52] – cfscholl | at:tutorial:modular [2013/05/17 20:24] (current) – adjusted tvcutsem | ||
|---|---|---|---|
| Line 119: | Line 119: | ||
| In this section, we describe how the '' | In this section, we describe how the '' | ||
| + | |||
| ==== import as trait composition ==== | ==== import as trait composition ==== | ||
| Line 162: | Line 163: | ||
| }; | }; | ||
| def each: clo { | def each: clo { | ||
| - | start.to: end do: clo | + | start.to: end-1 do: clo |
| }; | }; | ||
| }; | }; | ||
| Line 183: | Line 184: | ||
| So, '' | So, '' | ||
| - | Note that in AmbientTalk, | + | Note that in AmbientTalk, |
| < | < | ||
| Line 375: | Line 376: | ||
| def contains(tbl, | def contains(tbl, | ||
| { |return| | { |return| | ||
| - | 1.to: tbl.length | + | 1.to: tbl.length do: { |i| |
| if: (tbl[i] == elt) then: { | if: (tbl[i] == elt) then: { | ||
| return(true) | return(true) | ||
at/tutorial/modular.1361890339.txt.gz · Last modified: (external edit)
