GenUnitApp


List

Namespace: global
Parent Module: YoLo

Functions and values

Function or valueDescription
chunk pageSize _arg1
Signature: pageSize:uint32 -> _arg1:'?19838 list -> ('?19838 list * '?19838 list) option
Type parameters: '?19838

Chunk a list into pageSize large chunks

first _arg1
Signature: _arg1:'?19840 list -> '?19840 option
Type parameters: '?19840
sequenceAsyncA x
Signature: x:Async<'?19845> list -> Async<'?19845 list>
Type parameters: '?19845

Transform a "list" into a "Async" and collect the results using apply.

sequenceChoiceA x
Signature: x:Choice<'?19851,'?19852> list -> Choice<'?19851 list,'?19852>
Type parameters: '?19851, '?19852

Transform a "list" into a "Choice" and collect the results using apply.

split n xs
Signature: n:uint32 -> xs:'?19836 list -> '?19836 list * '?19836 list
Type parameters: '?19836

Split xs at n, into two lists, or where xs ends if xs.Length < n.

traverseAsyncA f list
Signature: f:('?19842 -> Async<'?19843>) -> list:'?19842 list -> Async<'?19843 list>
Type parameters: '?19842, '?19843

Map a Async producing function over a list to get a new Async using applicative style. ('a -> Async<'b>) -> 'a list -> Async<'b list>

traverseChoiceA f list
Signature: f:('?19847 -> Choice<'?19848,'?19849>) -> list:'?19847 list -> Choice<'?19848 list,'?19849>
Type parameters: '?19847, '?19848, '?19849

Map a Choice-producing function over a list to get a new Choice using applicative style. ('a -> Choice<'b, 'c>) -> 'a list -> Choice<'b list, 'c>

Fork me on GitHub