mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
removes unnecessary welps
This commit is contained in:
parent
697a69ff4b
commit
346aa84536
@ -16,6 +16,7 @@
|
||||
|%
|
||||
++ unqueue
|
||||
|= [queue=(qeu @) test=(list @)]
|
||||
^- tang
|
||||
%- zing
|
||||
|- ^- (list tang)
|
||||
?~ test ~
|
||||
@ -31,20 +32,20 @@
|
||||
++ test-descending-sorted-list ^- tang
|
||||
::
|
||||
=+ queue=(~(gas to `(qeu @)`~) descending)
|
||||
;:(welp (unqueue [queue descending]))
|
||||
(unqueue [queue descending])
|
||||
::
|
||||
++ test-ascending-sorted-list ^- tang
|
||||
::
|
||||
=+ queue=(~(gas to `(qeu @)`~) ascending)
|
||||
;:(welp (unqueue [queue ascending]))
|
||||
(unqueue [queue ascending])
|
||||
::
|
||||
++ test-unsorted-list ^- tang
|
||||
::
|
||||
=+ queue=(~(gas to `(qeu @)`~) unsorted)
|
||||
;:(welp (unqueue [queue unsorted]))
|
||||
(unqueue [queue unsorted])
|
||||
::
|
||||
++ test-duplicates-list ^- tang
|
||||
::
|
||||
=+ queue=(~(gas to `(qeu @)`~) duplicates)
|
||||
;:(welp (unqueue [queue duplicates]))
|
||||
(unqueue [queue duplicates])
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user