tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
17
Task/Queue-Usage/J/queue-usage-2.j
Normal file
17
Task/Queue-Usage/J/queue-usage-2.j
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
is_empty make_empty _
|
||||
1
|
||||
first_named_state =: push 9 onto make_empty _
|
||||
newer_state =: push 8 onto first_named_state
|
||||
this_state =: push 7 onto newer_state
|
||||
is_empty this_state
|
||||
0
|
||||
tell_queue this_state
|
||||
9 8 7
|
||||
tell_atom pop this_state
|
||||
9
|
||||
tell_atom pop pop this_state
|
||||
8
|
||||
tell_atom pop pop pop this_state
|
||||
7
|
||||
is_empty pop pop pop this_state
|
||||
1
|
||||
Loading…
Add table
Add a link
Reference in a new issue