diff options
Diffstat (limited to 'stdlib/source/lux/data/collection/dictionary.lux')
-rw-r--r-- | stdlib/source/lux/data/collection/dictionary.lux | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/source/lux/data/collection/dictionary.lux b/stdlib/source/lux/data/collection/dictionary.lux index 9244ebe84..f56d314a8 100644 --- a/stdlib/source/lux/data/collection/dictionary.lux +++ b/stdlib/source/lux/data/collection/dictionary.lux @@ -550,6 +550,10 @@ {#hash (Hash k) #root (Node k v)}) +(def: #export key-hash + (All [k v] (-> (Dictionary k v) (Hash k))) + (get@ #..hash)) + (def: #export (new Hash<k>) (All [k v] (-> (Hash k) (Dictionary k v))) {#hash Hash<k> |