RosettaCodeData/Task/Arrays/Self/arrays-6.self
2015-11-18 06:14:39 +00: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.