FSharpAux


JaggedList

Namespace: FSharpAux
Attributes:
[<AutoOpen>]

Functions and values

Function or valueDescription
fold(...)
Signature: innerFolder:('State1 -> 'T -> 'State1) -> outerFolder:('State2 -> 'State1 -> 'State2) -> innerState:'State1 -> outerState:'State2 -> jlist:'T list list -> 'State2
Type parameters: 'State1, 'T, '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

innerChoose chooser jlist
Signature: chooser:('T -> 'U option) -> jlist:'T list list -> 'U list list
Type parameters: 'T, 'U

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)

innerFilter predicate jlist
Signature: predicate:('T -> bool) -> jlist:'T list list -> 'T list list
Type parameters: 'T

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

innerFold folder state jlist
Signature: folder:('State -> 'T -> 'State) -> state:'State -> jlist:'T list list -> 'State list
Type parameters: 'State, 'T

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

map mapping jlist
Signature: mapping:('T -> 'U) -> jlist:'T list list -> 'U list list
Type parameters: 'T, 'U

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

map2 mapping jlist1 jlist2
Signature: mapping:('T1 -> 'T2 -> 'U) -> jlist1:'T1 list list -> jlist2:'T2 list list -> 'U list list
Type parameters: 'T1, 'T2, 'U

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.

map3 mapping jlist1 jlist2 jlist3
Signature: mapping:('T1 -> 'T2 -> 'T3 -> 'U) -> jlist1:'T1 list list -> jlist2:'T2 list list -> jlist3:'T3 list list -> 'U list list
Type parameters: 'T1, 'T2, 'T3, 'U

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.

mapi mapping jlist
Signature: mapping:(int -> 'T -> 'U) -> jlist:'T list list -> 'U list list
Type parameters: 'T, 'U

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.

ofJaggedArray(arr)
Signature: arr:'T [] [] -> 'T list list
Type parameters: 'T
ofJaggedSeq(data)
Signature: data:seq<'?8765> -> 'T list list
Type parameters: '?8765, 'T
toJaggedList(data)
Signature: data:'T list list -> 'T [] []
Type parameters: 'T
toJaggedSeq(data)
Signature: data:'T list list -> seq<seq<'T>>
Type parameters: 'T
transpose(data)
Signature: data:'T list list -> 'T list list
Type parameters: 'T
Fork me on GitHub