Arrays: Difference between revisions
Content added Content deleted
Line 3,857: | Line 3,857: | ||
=={{header|Oforth}}== |
=={{header|Oforth}}== |
||
Array created with [ ... ] are immutable array. |
|||
Oforth has no Array class. |
|||
⚫ | |||
Lists are immutables and can act like arrays. |
|||
⚫ | |||
<lang Oforth>[ "abd", "def", "ghi" ] at(3) |
<lang Oforth>[ "abd", "def", "ghi" ] at( 3 ) . |
||
Array new dup addAll( [1, 2, 3] ) dup put( 2, 8.1 ) . |
|||
</lang> |
</lang> |
||