Mercurial > repos > tabletprog
comparison modules/dict.tp @ 351:04ba2118c5fe
Rename (dict hash) size to (dict hash) length and make it actually work
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 13 Apr 2015 22:41:00 -0700 |
parents | 60292f131de9 |
children |
comparison
equal
deleted
inserted
replaced
350:a3b06d53bcb9 | 351:04ba2118c5fe |
---|---|
102 = <- :other { k = other } | 102 = <- :other { k = other } |
103 } | 103 } |
104 } | 104 } |
105 _hashWithBuckets:size:hashdiffs <- :_buckets :_size :_hashdiffs { | 105 _hashWithBuckets:size:hashdiffs <- :_buckets :_size :_hashdiffs { |
106 #{ | 106 #{ |
107 size <- { size } | 107 length <- { _size } |
108 ifget:else <- :key ifpres :ifnot { | 108 ifget:else <- :key ifpres :ifnot { |
109 basehash <- key hash | 109 basehash <- key hash |
110 notdone <- true | 110 notdone <- true |
111 i <- 0 | 111 i <- 0 |
112 ret <- _empty | 112 ret <- _empty |