Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.1 KB

associative.hashmapopts.md

File metadata and controls

23 lines (15 loc) · 1.1 KB

Home > @thi.ng/associative > HashMapOpts

HashMapOpts interface

Creation options for HashMap class.

Signature:

export interface HashMapOpts<K> 

Properties

Property Type Description
cap number Initial capacity. Will be rounded up to next power of 2.
equiv Predicate2<K> Optional key equality predicate.
hash HashFn<K> Function for computing key hash codes. MUST be supplied. Only numeric hashes are supported.
load number Normalized max load factor in the open (0..1) interval. The map will be resized (doubled in size) and all existing keys rehashed every time a new key is to be added and the current size exceeds this normalized load.