mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
fixes a bug in +nap:to affecting three-item queues
This commit is contained in:
parent
04b71f2cf8
commit
397dd6df81
@ -1875,9 +1875,10 @@
|
|||||||
::
|
::
|
||||||
++ nap :: removes head
|
++ nap :: removes head
|
||||||
?> ?=(^ a)
|
?> ?=(^ a)
|
||||||
?: =(~ l.a) r.a
|
?~ a ~
|
||||||
=+ b=get(a l.a)
|
=+ b=get
|
||||||
bal(a ^+(a [p.b q.b r.a]))
|
?~ q.b ~
|
||||||
|
bal(a ^+(a [n=n.q.b l=l.q.b r=r.q.b]))
|
||||||
::
|
::
|
||||||
++ put :: insert new tail
|
++ put :: insert new tail
|
||||||
|* b/*
|
|* b/*
|
||||||
|
Loading…
Reference in New Issue
Block a user