Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
push (aka enqueue) -- @list.push
pop (aka dequeue) -- @list.shift
empty -- !@list.elems

View file

@ -0,0 +1,12 @@
my @queue = < a >;
@queue.push('b', 'c'); # [ a, b, c ]
say @queue.shift; # a
say @queue.pop; # c
say @queue; # [ b ]
say @queue.elems; # 1
@queue.unshift('A'); # [ A, b ]
@queue.push('C'); # [ A, b, C ]