Header menu logo Dicts

ExtensionsIDictionary Module

Provides Extensions for IDictionary<'K,'V> interface. Such as Items as key value tuples , Pop(key) or GetValue with nicer error message)

Type extensions

Type extension Description

this.AsString

Full Usage: this.AsString

Parameters:
    () : unit

Returns: string

A string representation of the IDictionary including the count of entries and the first 5 entries.

Extended Type: IDictionary

() : unit
Returns: string

this.AsString

Full Usage: this.AsString

Returns: string
Modifiers: abstract

A string representation of the IDictionary including the count of entries and the first 5 entries.

Extended Type: IDictionary

Returns: string

this.DoesNotContainKey

Full Usage: this.DoesNotContainKey

Parameters:
    key : 'K

Returns: bool

Determines whether the Dictionary does not contains the specified key. not(dic.ContainsKey(key))

Extended Type: IDictionary

key : 'K
Returns: bool

this.Get

Full Usage: this.Get

Parameters:
    k : 'K

Returns: 'V

Get value at key, with nicer error messages.

Extended Type: IDictionary

k : 'K
Returns: 'V

this.Items

Full Usage: this.Items

Parameters:
    () : unit

Returns: ('K * 'V) seq

Returns a lazy seq of key and value tuples

Extended Type: IDictionary

() : unit
Returns: ('K * 'V) seq

this.Items

Full Usage: this.Items

Returns: ('K * 'V) seq
Modifiers: abstract

Returns a lazy seq of key and value tuples

Extended Type: IDictionary

Returns: ('K * 'V) seq

this.KeysSeq

Full Usage: this.KeysSeq

Parameters:
    () : unit

Returns: 'K seq

Returns a (lazy) sequence of Keys

Extended Type: IDictionary

() : unit
Returns: 'K seq

this.KeysSeq

Full Usage: this.KeysSeq

Returns: 'K seq
Modifiers: abstract

Returns a (lazy) sequence of Keys

Extended Type: IDictionary

Returns: 'K seq

this.Pop

Full Usage: this.Pop

Parameters:
    k : 'K

Returns: 'V

Get a value and remove it from Dictionary, like *.pop() in Python.

Extended Type: IDictionary

k : 'K
Returns: 'V

this.Set

Full Usage: this.Set

Parameters:
    k : 'K
    v : 'V

Set/add value at key, with nicer error messages. Same as Dicts.addValue key value

Extended Type: IDictionary

k : 'K
v : 'V

this.ToString

Full Usage: this.ToString

Parameters:
    entriesToPrint : int

Returns: string

A string representation of the IDictionary including the count of entries and the specified amount of entries.

Extended Type: IDictionary

entriesToPrint : int
Returns: string

this.ValuesSeq

Full Usage: this.ValuesSeq

Parameters:
    () : unit

Returns: 'V seq

Returns a (lazy) sequence of values

Extended Type: IDictionary

() : unit
Returns: 'V seq

this.ValuesSeq

Full Usage: this.ValuesSeq

Returns: 'V seq
Modifiers: abstract

Returns a (lazy) sequence of values

Extended Type: IDictionary

Returns: 'V seq

Type something to start searching.