MBrace.Core


Array

Namespace: MBrace.Core.Internals
Parent Module: Utils

Functions and values

Function or valueDescription
splitByChunkSize(chunkSize input)
Signature: chunkSize:int -> input:'T [] -> 'T [] []
Type parameters: 'T

partitions an array into chunks of given size.

splitByPartitionCount(partitions input)
Signature: partitions:int -> input:'T [] -> 'T [] []
Type parameters: 'T

partitions an array into a predetermined number of uniformly sized chunks.

splitByPartitionCountRange(...)
Signature: partitions:int -> startRange:int64 -> endRange:int64 -> (int64 * int64) []

partitions an array into a predetermined number of uniformly sized chunks.

splitWeighted(weights input)
Signature: weights:int [] -> input:'T [] -> 'T [] []
Type parameters: 'T

Partitions an array into chunks according to a weighted array.

splitWeightedRange(weights lower upper)
Signature: weights:int [] -> lower:int64 -> upper:int64 -> (int64 * int64) option []

Partitions an array into chunks according to a weighted array.

Fork me on GitHub