at:tutorial:modular
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| at:tutorial:modular [2013/02/26 15:53] – cfscholl | at:tutorial:modular [2013/05/17 20:24] (current) – adjusted tvcutsem | ||
|---|---|---|---|
| Line 163: | Line 163: | ||
| }; | }; | ||
| def each: clo { | def each: clo { | ||
| - | start.to: end do: clo | + | start.to: end-1 do: clo |
| }; | }; | ||
| }; | }; | ||
| Line 376: | 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.txt · Last modified: by tvcutsem
