diff options
author | Dmytro Sytnik <dimaarman@gmail.com> | 2024-05-13 15:21:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 13:21:49 -0600 |
commit | 781ebf270b3001883847a28237b57d93dff1269a (patch) | |
tree | 780c818c3fccf140b63516aab81c0d190643910a | |
parent | 154d5272a01e68ec1e0871d75d94fc7bf8a871e0 (diff) |
[smalltalk/en] add mixed type array (#4109)
-rw-r--r-- | smalltalk.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/smalltalk.html.markdown b/smalltalk.html.markdown index 9c2e870e..e1ae832c 100644 --- a/smalltalk.html.markdown +++ b/smalltalk.html.markdown @@ -441,8 +441,9 @@ Fixed length collection - WordArray: Array limited to word elements (0-2^32) ```smalltalk -| b x y sum max | +| b x y z sum max | x := #(4 3 2 1). "constant array" +z := #(1 2 3 'hi'). "mixed type array" x := Array with: 5 with: 4 with: 3 with: 2. "create array with up to 4 elements" x := Array new: 4. "allocate an array with specified size" x "set array elements" |