From 26e6f8f8e3c73b79b572cebf283686b57f55658e Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Tue, 2 Dec 2014 20:03:45 +0000 Subject: [PATCH] Make empty sets and maps size zero. Changes the one use of wyt:by to match the old behavior. --- arvo/hoon.hoon | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arvo/hoon.hoon b/arvo/hoon.hoon index 48a5af29a8..9ed056f835 100644 --- a/arvo/hoon.hoon +++ b/arvo/hoon.hoon @@ -1946,7 +1946,6 @@ $(b [n.b l.b $(b r.b, a [n.a ~ r.a])], a l.a) :: +- wyt :: size of set - .+ |- ^- @ ?~(a 0 +((add $(a l.a) $(a r.a)))) -- @@ -2184,7 +2183,6 @@ [n=[p=p.n.a q=(b p.n.a q.n.a)] l=$(a l.a) r=$(a r.a)] :: +- wyt :: depth of map - .+ |- ^- @ ?~(a 0 +((add $(a l.a) $(a r.a)))) -- @@ -7266,7 +7264,7 @@ ?^ hey [dex [%stop u.hey]] ?: (~(has in gil) sut) - =+ dyr=~(wyt by p.dex) + =+ dyr=+(~(wyt by p.dex)) [[(~(put by p.dex) sut dyr) q.dex] [%stop dyr]] =+ rom=$(gil (~(put in gil) sut), sut repo) =+ rey=(~(get by p.p.rom) sut)