Header menu logo FSharp.Data.Adaptive

AMap Module

Functional operators for amap<_,_>

Functions and values

Function or value Description

keys map

Full Usage: keys map

Parameters:
    map : amap<'Key, 'Value>

Returns: aset<'Key>

Gets the keys of the given map as aset<_>.

map : amap<'Key, 'Value>
Returns: aset<'Key>

ofAList list

Full Usage: ofAList list

Parameters:
Returns: amap<Index, 'T>

Creates an amap using the given alist.

list : alist<'T>
Returns: amap<Index, 'T>

sortBy projection map

Full Usage: sortBy projection map

Parameters:
    projection : 'K -> 'V -> 'T
    map : amap<'K, 'V>

Returns: alist<'K * 'V>

Creates a sorted alist holding Key/Value tuples from the amap using the given projection.

projection : 'K -> 'V -> 'T
map : amap<'K, 'V>
Returns: alist<'K * 'V>

sortByDescending projection map

Full Usage: sortByDescending projection map

Parameters:
    projection : 'K -> 'V -> 'T
    map : amap<'K, 'V>

Returns: alist<'K * 'V>

Creates a sorted (descending order) alist holding Key/Value tuples from the amap using the given projection.

projection : 'K -> 'V -> 'T
map : amap<'K, 'V>
Returns: alist<'K * 'V>

toAList map

Full Usage: toAList map

Parameters:
Returns: alist<'Value>

Creates an alist using the given amap.

map : amap<Index, 'Value>
Returns: alist<'Value>

Type something to start searching.