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
|
||||
?> ?=(^ a)
|
||||
?: =(~ l.a) r.a
|
||||
=+ b=get(a l.a)
|
||||
bal(a ^+(a [p.b q.b r.a]))
|
||||
?~ a ~
|
||||
=+ b=get
|
||||
?~ q.b ~
|
||||
bal(a ^+(a [n=n.q.b l=l.q.b r=r.q.b]))
|
||||
::
|
||||
++ put :: insert new tail
|
||||
|* b/*
|
||||
|
Loading…
Reference in New Issue
Block a user