Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 677 Bytes

lib-hashtable.md

File metadata and controls

23 lines (12 loc) · 677 Bytes

set[] : (Hashtable<k,v>, k, v) -> Hashtable<k,v>

.lookup : (Hashtable<k,v>, k, default: v) -> v

.has : (Hashtable<k,v>, k) -> Bool

print : Hashtable<k,v> -> Nil

.to-string : Hashtable<k,v> -> String

HashtableIs is an alternative hashtable type that uses shallow hashes and shallow equality as opposed to deep hashes and deep equality.

set[] : (HashtableIs<k,v>, k, v) -> HashtableIs<k,v>

.lookup : (HashtableIs<k,v>, k, default: v) -> v

.has : (HashtableIs<k,v>, k) -> Bool

print : HashtableIs<k,v> -> Nil

.to-string : HashtableIs<k,v> -> String