This shows you the differences between two versions of the page.
en:anonymousarrays [2016/01/01 23:08] admin [Example] |
en:anonymousarrays [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Anonymous Arrays ===== | ||
- | An anonymous array is a set of numeric values or a set of string values, separated by commas, and enclosed in braces {}. Anonymous array can be used to rapidly assign a group of values to an array. | ||
- | \\ | ||
- | Anonymous Arrays can also be used in the [[poly|Poly]], | ||
- | ==== Example ==== | ||
- | < | ||
- | dim myarray(4) | ||
- | myarray = {1, 2, 3, 4} | ||
- | |||
- | dim words(1) | ||
- | words = {" | ||
- | for n = 0 to words[?]-1 | ||
- | print words[n] | ||
- | next n | ||
- | </ | ||