JaggedList Module

Functions and values

Function or value Description

fold innerFolder outerFolder innerState outerState jlist

Full Usage: fold innerFolder outerFolder innerState outerState jlist

Parameters:
    innerFolder : 'State1 -> 'T -> 'State1
    outerFolder : 'State2 -> 'State1 -> 'State2
    innerState : 'State1
    outerState : 'State2
    jlist : 'T list list

Returns: 'State2

Applies a function to each element of the inner lists of the jagged list, threading an accumulator argument through the computation.

A second function is the applied to each result of the predeceding computation, again passing an accumulater through the computation

innerFolder : 'State1 -> 'T -> 'State1
outerFolder : 'State2 -> 'State1 -> 'State2
innerState : 'State1
outerState : 'State2
jlist : 'T list list
Returns: 'State2

innerChoose chooser jlist

Full Usage: innerChoose chooser jlist

Parameters:
    chooser : 'T -> 'U option -
    jlist : 'T list list -

Returns: 'U list list

Applies the given function to each element in the inner lists of the jagged List. Returns the jagged list whose inner lists are comprised of the results x for each element where the function returns Some(x)

chooser : 'T -> 'U option

jlist : 'T list list

Returns: 'U list list

Example

innerFilter predicate jlist

Full Usage: innerFilter predicate jlist

Parameters:
    predicate : 'T -> bool -
    jlist : 'T list list -

Returns: 'T list list

Returns a new jagged list whose inner lists only contain the elements for which the given predicate returns true

predicate : 'T -> bool

jlist : 'T list list

Returns: 'T list list

Example

innerFold folder state jlist

Full Usage: innerFold folder state jlist

Parameters:
    folder : 'State -> 'T -> 'State -
    state : 'State -
    jlist : 'T list list -

Returns: 'State list

Applies a function to each element of the inner lists of the jagged list, threading an accumulator argument through the computation.

folder : 'State -> 'T -> 'State

state : 'State

jlist : 'T list list

Returns: 'State list

Example

map mapping jlist

Full Usage: map mapping jlist

Parameters:
    mapping : 'T -> 'U -
    jlist : 'T list list -

Returns: 'U list list

Builds a new jagged list whose inner lists are the results of applying the given function to each of their elements.

mapping : 'T -> 'U

jlist : 'T list list

Returns: 'U list list

Example

map2 mapping jlist1 jlist2

Full Usage: map2 mapping jlist1 jlist2

Parameters:
    mapping : 'T1 -> 'T2 -> 'U -
    jlist1 : 'T1 list list -
    jlist2 : 'T2 list list -

Returns: 'U list list

Builds a new jagged list whose inner lists are the results of applying the given function to the corresponding elements of the inner lists of the two jagged lists pairwise.
All corresponding inner lists must be of the same length, otherwise ArgumentException is raised.

mapping : 'T1 -> 'T2 -> 'U

jlist1 : 'T1 list list

jlist2 : 'T2 list list

Returns: 'U list list

Example

map3 mapping jlist1 jlist2 jlist3

Full Usage: map3 mapping jlist1 jlist2 jlist3

Parameters:
    mapping : 'T1 -> 'T2 -> 'T3 -> 'U -
    jlist1 : 'T1 list list -
    jlist2 : 'T2 list list -
    jlist3 : 'T3 list list -

Returns: 'U list list

Builds a new jagged list whose inner lists are the results of applying the given function to the corresponding elements of the inner lists of the tree jagged lists triplewise.
All corresponding inner lists must be of the same length, otherwise ArgumentException is raised.

mapping : 'T1 -> 'T2 -> 'T3 -> 'U

jlist1 : 'T1 list list

jlist2 : 'T2 list list

jlist3 : 'T3 list list

Returns: 'U list list

Example

mapi mapping jlist

Full Usage: mapi mapping jlist

Parameters:
    mapping : int -> 'T -> 'U -
    jlist : 'T list list -

Returns: 'U list list

Builds a new jagged list whose inner lists are the results of applying the given function to each of their elements. The integer index passed to the function indicates the index of element in the inner list being transformed.

mapping : int -> 'T -> 'U

jlist : 'T list list

Returns: 'U list list

Example

ofJaggedArray arr

Full Usage: ofJaggedArray arr

Parameters:
    arr : 'T[][]

Returns: 'T list list
arr : 'T[][]
Returns: 'T list list

ofJaggedSeq data

Full Usage: ofJaggedSeq data

Parameters:
    data : seq<'a>

Returns: 'T list list
data : seq<'a>
Returns: 'T list list

toJaggedList data

Full Usage: toJaggedList data

Parameters:
    data : 'T list list

Returns: 'T[][]
data : 'T list list
Returns: 'T[][]

toJaggedSeq data

Full Usage: toJaggedSeq data

Parameters:
    data : 'T list list

Returns: seq<seq<'T>>
data : 'T list list
Returns: seq<seq<'T>>

transpose data

Full Usage: transpose data

Parameters:
    data : 'T list list

Returns: 'T list list
data : 'T list list
Returns: 'T list list