Header menu logo FSharp.Data.Adaptive

AList Module

Functional operators for alist<_>

Functions and values

Function or value Description

groupBy mapping set

Full Usage: groupBy mapping set

Parameters:
    mapping : 'T -> 'K
    set : alist<'T>

Returns: amap<'K, IndexList<'T>>

Groups the alist by the given mapping and returns an amap with potentially colliding entries in a IndexList<'T>.

mapping : 'T -> 'K
set : alist<'T>
Returns: amap<'K, IndexList<'T>>

ofAMap map

Full Usage: ofAMap map

Parameters:
Returns: alist<'T>

Creates an alist using the given amap.

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

ofASet set

Full Usage: ofASet set

Parameters:
Returns: alist<'T>

Creates an alist from the set with undefined element order.

set : aset<'T>
Returns: alist<'T>

toAMap list

Full Usage: toAMap list

Parameters:
Returns: amap<Index, 'T>

Creates an amap using the given alist.

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

toASet list

Full Usage: toASet list

Parameters:
Returns: aset<'T>

Creates an aset holding all elements of the given list.

list : alist<'T>
Returns: aset<'T>

toASetIndexed list

Full Usage: toASetIndexed list

Parameters:
Returns: aset<Index * 'T>

Creates an aset holding all index/elements pairs of the given list.

list : alist<'T>
Returns: aset<Index * 'T>

Type something to start searching.