Seq Module

Contains extensions to the F# Seq module.

Functions and values

Function or value Description

allEqual items

Full Usage: allEqual items

Parameters:
    items : seq<'T>

Returns: bool

Indicates if all elements of the sequence are equal.

items : seq<'T>
Returns: bool

duplicates l

Full Usage: duplicates l

Parameters:
    l : seq<'a>

Returns: 'a list

Gets the duplicate elements in the sequence.

l : seq<'a>
Returns: 'a list

hasDuplicates l

Full Usage: hasDuplicates l

Parameters:
    l : seq<'s>

Returns: bool

Indicates if a sequence has duplicate elements.

l : seq<'s>
Returns: bool

maxIndex seq

Full Usage: maxIndex seq

Parameters:
    seq : seq<'a>

Returns: int

Gets the index of the maximum element of the sequence.

seq : seq<'a>
Returns: int

minIndex seq

Full Usage: minIndex seq

Parameters:
    seq : seq<'a>

Returns: int

Gets the index of the minimum element of the sequence.

seq : seq<'a>
Returns: int

toArrayQuick xs

Full Usage: toArrayQuick xs

Parameters:
    xs : seq<'T>

Returns: 'T[]
Modifiers: inline
Type parameters: 'T

Like Seq.toArray but does not clone the array if the input is already an array

xs : seq<'T>
Returns: 'T[]

© Copyright 2021, DiffSharp Contributors.