RosettaCodeData/Task/Arrays/Self/arrays-6.self

12 lines
212 B
Plaintext

|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.