hashtable_copy


hashtable_copyx(ht)
      

Return a new hash table with the same entries as in the hash table ht.

Examples:


let h = #{1:2, 3:4}
let c = hashtable_copy(h)
h[1] = 100
h
// #{1:100, 3:4}
c
// #{1:2, 3:4}
      

Also see:

hashtable_for_each
hashtable_entries


Core Module Index | Contents