RosettaCodeData/Task/Arrays/Self/arrays-6.self
2023-07-01 13:44:08 -04:00

11 lines
212 B
Text

|s|
"creates a new sequence"
s: sequence copyRemoveAll.
"add an element"
s addLast: 'Hello'.
"access the first element"
s first printLine.
"remove the first element"
s removeFirst.
"Check size"
s size printLine.