fixes a bug in +nap:to affecting three-item queues

This commit is contained in:
Jose L. Bellod Cisneros 2019-03-30 18:53:05 +01:00
parent 04b71f2cf8
commit 397dd6df81

View File

@ -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/*