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
?> ?=(^ 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/*