FSharpx.Collections


PersistentHashMap<'T, 'S> Type

A Map is a collection that maps keys to values. Hash maps require keys that correctly support GetHashCode and Equals. Hash maps provide fast access (log32N hops). count is O(1).

Record fields

Record Field Description

count

Full Usage: count

Field type: int
Field type: int

hasNull

Full Usage: hasNull

Field type: bool
Field type: bool

nullValue

Full Usage: nullValue

Field type: 'S
Field type: 'S

root

Full Usage: root

Field type: INode
Field type: INode

Instance members

Instance member Description

this.Add(key, value)

Full Usage: this.Add(key, value)

Parameters:
    key : 'T
    value : 'S

Returns: PersistentHashMap<'T, 'S>
key : 'T
value : 'S
Returns: PersistentHashMap<'T, 'S>

this.ContainsKey(key)

Full Usage: this.ContainsKey(key)

Parameters:
    key : 'T

Returns: bool
key : 'T
Returns: bool

this.Count

Full Usage: this.Count

Returns: int
Returns: int

this.[key]

Full Usage: this.[key]

Parameters:
    key : 'T

Returns: 'S
key : 'T
Returns: 'S

this.Iterator()

Full Usage: this.Iterator()

Returns: seq<'T * 'S>
Returns: seq<'T * 'S>

this.Length

Full Usage: this.Length

Returns: int
Returns: int

this.Remove(key)

Full Usage: this.Remove(key)

Parameters:
    key : 'T

Returns: PersistentHashMap<'T, 'S>
key : 'T
Returns: PersistentHashMap<'T, 'S>

Static members

Static member Description

PersistentHashMap.Empty()

Full Usage: PersistentHashMap.Empty()

Returns: PersistentHashMap<'T, 'S>
Returns: PersistentHashMap<'T, 'S>

PersistentHashMap.ofSeq items

Full Usage: PersistentHashMap.ofSeq items

Parameters:
    items : seq<'T * 'S>

Returns: PersistentHashMap<'T, 'S>
items : seq<'T * 'S>
Returns: PersistentHashMap<'T, 'S>