gall: enforce monotonic growth of cases

This commit is contained in:
~wicrum-wicrun 2023-03-28 20:27:27 +02:00
parent f0043aa4ec
commit e4ceed09ad

View File

@ -972,6 +972,9 @@
. .
=/ val (get:on-path fan.u.old yon) =/ val (get:on-path fan.u.old yon)
?~ val :: insert binding at new case ?~ val :: insert binding at new case
=> ?~ lat=(ram:on-path fan.u.old) .
?> (gte yon key.u.lat)
.
%+ ~(put by sky.yoke) spur %+ ~(put by sky.yoke) spur
u.old(fan (put:on-path fan.u.old yon [%& noun])) u.old(fan (put:on-path fan.u.old yon [%& noun]))
?- -.u.val ?- -.u.val