tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
4
Task/Queue-Definition/V/queue-definition-1.v
Normal file
4
Task/Queue-Definition/V/queue-definition-1.v
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[fifo_create []].
|
||||
[fifo_push swap cons].
|
||||
[fifo_pop [[*rest a] : [*rest] a] view].
|
||||
[fifo_empty? dup empty?].
|
||||
8
Task/Queue-Definition/V/queue-definition-2.v
Normal file
8
Task/Queue-Definition/V/queue-definition-2.v
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|fifo_create 3 fifo_push 4 fifo_push 5 fifo_push ??
|
||||
=[5 4 3]
|
||||
|fifo_empty? puts
|
||||
=false
|
||||
|fifo_pop put fifo_pop put fifo_pop put
|
||||
=3 4 5
|
||||
|fifo_empty? puts
|
||||
=true
|
||||
Loading…
Add table
Add a link
Reference in a new issue