Generic functions and operators
Modules | Description |
Function or value | Description |
Full Usage:
/>x
Parameters:
'c -> 'd -> 'e
Returns: 'd -> 'c -> 'e
Modifiers: inline Type parameters: 'c, 'd, 'e |
|
Full Usage:
</x
Parameters:
'a
Returns: ('a -> 'b) -> 'b
Modifiers: inline Type parameters: 'a, 'b |
|
Full Usage:
source |- f
Parameters:
'T
f : 'T -> unit
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
curry f x y
Parameters:
'T1 * 'T2 -> 'Result
x : 'T1
y : 'T2
Returns: 'Result
Modifiers: inline Type parameters: 'T1, 'T2, 'Result |
|
Full Usage:
curryN f t
Parameters:
^T1*^T2*...*^Tn -> 'Result
t : 'T1
Returns: 'T2->...->'Tn->'Result
Modifiers: inline Type parameters: ^T1 * ^T2 * ... * ^Tn, 'Result, 'T1, 'T2 -> ... -> 'Tn -> 'Result |
|
Full Usage:
either fOk fError source
Parameters:
'T -> 'U
-
Function to be applied to source, if it contains an Ok value.
fError : 'Error -> 'U
-
Function to be applied to source, if it contains an Error value.
source : Result<'T, 'Error>
-
The source value, containing an Ok or an Error.
Returns: 'U
The result of applying either functions.
Modifiers: inline Type parameters: 'T, 'U, 'Error |
|
Full Usage:
flip f x y
Parameters:
'V -> 'T -> 'Result
x : 'T
y : 'V
Returns: 'Result
Modifiers: inline Type parameters: 'V, 'T, 'Result |
|
Full Usage:
konst k arg2
Parameters:
'T
-
The constant value.
arg1 : 'Ignored
Returns: 'T
The constant value function.
Modifiers: inline Type parameters: 'T, 'Ignored |
|
Full Usage:
option f n _arg1
Parameters:
'g -> 'h
n : 'h
_arg1 : 'g option
Returns: 'h
Modifiers: inline Type parameters: 'g, 'h |
|
Full Usage:
tap f x
Parameters:
'T -> unit
x : 'T
Returns: 'T
|
|
Full Usage:
tuple2 t1 t2
Parameters:
'T1
t2 : 'T2
Returns: 'T1 * 'T2
Modifiers: inline Type parameters: 'T1, 'T2 |
|
Full Usage:
tuple3 t1 t2 t3
Parameters:
'T1
t2 : 'T2
t3 : 'T3
Returns: 'T1 * 'T2 * 'T3
Modifiers: inline Type parameters: 'T1, 'T2, 'T3 |
|
Full Usage:
tuple4 t1 t2 t3 t4
Parameters:
'T1
t2 : 'T2
t3 : 'T3
t4 : 'T4
Returns: 'T1 * 'T2 * 'T3 * 'T4
Modifiers: inline Type parameters: 'T1, 'T2, 'T3, 'T4 |
|
Full Usage:
tuple5 t1 t2 t3 t4 t5
Parameters:
'T1
t2 : 'T2
t3 : 'T3
t4 : 'T4
t5 : 'T5
Returns: 'T1 * 'T2 * 'T3 * 'T4 * 'T5
Modifiers: inline Type parameters: 'T1, 'T2, 'T3, 'T4, 'T5 |
|
Full Usage:
tuple6 t1 t2 t3 t4 t5 t6
Parameters:
'T1
t2 : 'T2
t3 : 'T3
t4 : 'T4
t5 : 'T5
t6 : 'T6
Returns: 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6
Modifiers: inline Type parameters: 'T1, 'T2, 'T3, 'T4, 'T5, 'T6 |
|
Full Usage:
tuple7 t1 t2 t3 t4 t5 t6 t7
Parameters:
'T1
t2 : 'T2
t3 : 'T3
t4 : 'T4
t5 : 'T5
t6 : 'T6
t7 : 'T7
Returns: 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7
Modifiers: inline Type parameters: 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7 |
|
Full Usage:
tuple8 t1 t2 t3 t4 t5 t6 t7 t8
Parameters:
'T1
t2 : 'T2
t3 : 'T3
t4 : 'T4
t5 : 'T5
t6 : 'T6
t7 : 'T7
t8 : 'T8
Returns: 'T1 * 'T2 * 'T3 * 'T4 * 'T5 * 'T6 * 'T7 * 'T8
Modifiers: inline Type parameters: 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8 |
|
Full Usage:
uncurryN f t
Parameters:
'T1 -> 'T2->...->'Tn->'Result
t : ^T1*^T2*...*^Tn
Returns: 'Result
Modifiers: inline Type parameters: 'T1, 'T2 -> ... -> 'Tn -> 'Result, ^T1 * ^T2 * ... * ^Tn, 'Result |
Function or value | Description |
Full Usage:
f <!> x
Parameters:
'T -> 'U
x : ^Functor<'T>
Returns: ^Functor<'U>
Modifiers: inline Type parameters: 'T, 'U, ^Functor<'T>, ^Functor<'U> |
|
Full Usage:
f <<<| x
Parameters:
'T -> 'U
x : ^Functor1
Returns: ^Functor1
Modifiers: inline |
|
Full Usage:
f <<| x
Parameters:
'T -> 'U
x : ^Functor<'T>
Returns: ^Functor<'U>
Modifiers: inline Type parameters: 'T, 'U, ^Functor<'T>, ^Functor<'U> |
|
Full Usage:
x |>> f
Parameters:
^Functor<'T>
f : 'T -> 'U
Returns: ^Functor<'U>
Modifiers: inline Type parameters: ^Functor<'T>, ^Functor<'U>, 'T, 'U |
|
Full Usage:
x |>>> f
Parameters:
^Functor1
f : 'T -> 'U
Returns: ^Functor1
Modifiers: inline |
|
Full Usage:
iter action source
Parameters:
'T -> unit
source : ^Functor<'T>
Modifiers: inline Type parameters: 'T, ^Functor<'T> |
|
Full Usage:
map f x
Parameters:
'T -> 'U
x : ^Functor<'T>
Returns: ^Functor<'U>
Modifiers: inline Type parameters: 'T, 'U, ^Functor<'T>, ^Functor<'U> |
|
Full Usage:
unzip source
Parameters:
^Functor<'T1*'T2>
Returns: 'Functor<'T1> * 'Functor<'T2>
Modifiers: inline Type parameters: ^Functor<'T1 * 'T2>, 'Functor<'T1>, 'Functor<'T2> |
|
Full Usage:
zip source1 source2
Parameters:
^ZipFunctor<'T1>
source2 : ^ZipFunctor<'T2>
Returns: ^ZipFunctor<'T1*'T2>
Modifiers: inline Type parameters: ^ZipFunctor<'T1>, ^ZipFunctor<'T2>, ^ZipFunctor<'T1 * 'T2> |
Function or value | Description |
Full Usage:
x *> y
Parameters:
^Applicative<'T>
y : ^Applicative<'U>
Returns: ^Applicative<'U>
Modifiers: inline Type parameters: ^Applicative<'T>, ^Applicative<'U->'U>, ^Applicative<'U>, 'T, 'U |
|
Full Usage:
x <* y
Parameters:
^Applicative<'U>
y : ^Applicative<'T>
Returns: ^Applicative<'U>
Modifiers: inline Type parameters: ^Applicative<'U>, ^Applicative<'T->'U>, ^Applicative<'T>, 'U, 'T |
|
Full Usage:
f <*> x
Parameters:
^Applicative<'T->'U>
x : ^Applicative<'T>
Returns: ^Applicative<'U>
Modifiers: inline Type parameters: ^Applicative<'T -> 'U>, ^Applicative<'T>, ^Applicative<'U> |
|
Full Usage:
f <.> x
Parameters:
^ZipApplicative<'T->'U>
x : ^ZipApplicative<'T>
Returns: ^ZipApplicative<'U>
Modifiers: inline Type parameters: ^ZipApplicative<'T -> 'U>, ^ZipApplicative<'T>, ^ZipApplicative<'U> |
|
Full Usage:
lift2 f x y
Parameters:
'T -> 'U -> 'V
x : ^Applicative<'T>
y : ^Applicative<'U>
Returns: ^Applicative<'V>
Modifiers: inline Type parameters: 'T, 'U, 'V, ^Applicative<'T>, ^Applicative<'U>, ^Applicative<'V> |
|
Full Usage:
lift3 f x y z
Parameters:
'T -> 'U -> 'V -> 'W
x : ^Applicative<'T>
y : ^Applicative<'U>
z : ^Applicative<'V>
Returns: ^Applicative<'W>
Modifiers: inline Type parameters: 'T, 'U, 'V, 'W, ^Applicative<'T>, ^Applicative<'U>, ^Applicative<'V>, ^Applicative<'W> |
|
Full Usage:
map2 f x y
Parameters:
'T -> 'U -> 'V
x : ^ZipApplicative<'T>
y : ^ZipApplicative<'U>
Returns: ^ZipApplicative<'V>
Modifiers: inline Type parameters: 'T, 'U, 'V, ^ZipApplicative<'T>, ^ZipApplicative<'U>, ^ZipApplicative<'V> |
|
Full Usage:
map3 f x y z
Parameters:
'T -> 'U -> 'V -> 'W
x : ^ZipApplicative<'T>
y : ^ZipApplicative<'U>
z : ^ZipApplicative<'V>
Returns: ^ZipApplicative<'W>
Modifiers: inline Type parameters: 'T, 'U, 'V, 'W, ^ZipApplicative<'T>, ^ZipApplicative<'U>, ^ZipApplicative<'V>, ^ZipApplicative<'W> |
|
Full Usage:
opt v
Parameters:
^Alternative<'T>
Returns: ^Alternative
Modifiers: inline Type parameters: ^Alternative<'T>, ^Alternative<option<'T>>, 'T |
|
Full Usage:
pur x
Parameters:
'T
Returns: ^ZipFunctor<'T>
Modifiers: inline Type parameters: 'T, ^ZipFunctor<'T> |
|
Full Usage:
result x
Parameters:
'T
Returns: ^Functor<'T>
Modifiers: inline Type parameters: 'T, ^Functor<'T> |
Function or value | Description |
Full Usage:
(<=<) g f x
Parameters:
'b -> ^Monad<'V>
f : 'T -> ^Monad<'U>
x : 'T
Returns: ^Monad<'V>
Modifiers: inline Type parameters: 'b, ^Monad<'V>, ^Monad<'U>, 'T |
|
Full Usage:
f =<< x
Parameters:
'T -> ^Monad<'U>
x : ^Monad<'T>
Returns: ^Monad<'U>
Modifiers: inline Type parameters: 'T, ^Monad<'U>, ^Monad<'T> |
|
Full Usage:
(>=>) f g x
Parameters:
'T -> ^Monad<'U>
g : 'U -> ^Monad<'V>
x : 'T
Returns: ^Monad<'V>
Modifiers: inline Type parameters: 'T, ^Monad<'U>, ^Monad<'V>, 'U |
|
Full Usage:
x >>= f
Parameters:
^Monad<'T>
f : 'T -> ^Monad<'U>
Returns: ^Monad<'U>
Modifiers: inline Type parameters: ^Monad<'T>, ^Monad<'U>, 'T |
|
Full Usage:
bind f x
Parameters:
'T -> ^Monad<'U>
x : ^Monad<'T>
Returns: ^Monad<'U>
Modifiers: inline Type parameters: 'T, ^Monad<'U>, ^Monad<'T> |
|
Full Usage:
join x
Parameters:
^Monad
Returns: ^Monad<'T>
Modifiers: inline Type parameters: ^Monad<Monad<'T>>, ^Monad<'T> |
|
Full Usage:
liftM f m1
Parameters:
'T -> 'U
m1 : ^Monad<'T>
Returns: ^Monad<'U>
Modifiers: inline Type parameters: 'T, 'U, ^Monad<'T>, ^Monad<'U> |
Function or value | Description |
Full Usage:
x ++ y
Parameters:
^Monoid
y : ^Monoid
Returns: ^Monoid
Modifiers: inline Type parameters: ^Monoid |
|
Full Usage:
getZero ()
Parameters:
unit
Returns: ^Monoid
Modifiers: inline Type parameters: ^Monoid |
|
Full Usage:
plus x y
Parameters:
^Monoid
y : ^Monoid
Returns: ^Monoid
Modifiers: inline Type parameters: ^Monoid |
|
Full Usage:
zero
Returns: ^Monoid
Modifiers: inline Type parameters: ^Monoid |
Function or value | Description |
Full Usage:
x <|> y
Parameters:
^Functor<'T>
y : ^Functor<'T>
Returns: ^Functor<'T>
Modifiers: inline Type parameters: ^Functor<'T> |
|
Full Usage:
empty
Returns: ^Functor<'T>
Modifiers: inline Type parameters: ^Functor<'T> |
|
Full Usage:
getEmpty ()
Parameters:
unit
Returns: ^Functor<'T>
Modifiers: inline Type parameters: ^Functor<'T> |
|
Full Usage:
guard x
Parameters:
bool
Returns: ^MonadPlus
Modifiers: inline Type parameters: ^MonadPlus<unit> |
Function or value | Description |
Full Usage:
bimap f g source
Parameters:
'T -> 'U
g : 'V -> 'W
source : ^Bifunctor<'T,'V>
Returns: ^Bifunctor<'U,'W>
Modifiers: inline Type parameters: 'T, 'U, 'V, 'W, ^Bifunctor<'T,'V>, ^Bifunctor<'U,'W> |
|
Full Usage:
contramap f x
Parameters:
'U -> 'T
x : ^Contravariant<'T>
Returns: ^Contravariant<'U>
Modifiers: inline Type parameters: 'U, 'T, ^Contravariant<'T>, ^Contravariant<'U> |
|
Full Usage:
dimap f g source
Parameters:
'A -> 'B
g : 'C -> 'D
source : ^Profunctor<'B,'C>
Returns: ^Profunctor<'A,'D>
Modifiers: inline Type parameters: 'A, 'B, 'C, 'D, ^Profunctor<'B,'C>, ^Profunctor<'A,'D> |
|
Full Usage:
first f source
Parameters:
'T -> 'V
source : ^Bifunctor<'T,'V>
Returns: ^Bifunctor<'U,'V>
Modifiers: inline Type parameters: 'T, 'V, ^Bifunctor<'T,'V>, ^Bifunctor<'U,'V> |
|
Full Usage:
invmap f g source
Parameters:
'T -> 'U
g : 'U -> 'T
source : ^InvariantFunctor<'T>
Returns: 'InvariantFunctor<'U>
Modifiers: inline Type parameters: 'T, 'U, ^InvariantFunctor<'T>, 'InvariantFunctor<'U> |
|
Full Usage:
lmap f source
Parameters:
'A -> 'B
source : ^Profunctor<'B,'C>
Returns: ^Profunctor<'A,'C>
Modifiers: inline Type parameters: 'A, 'B, ^Profunctor<'B,'C>, ^Profunctor<'A,'C> |
|
Full Usage:
rmap f source
Parameters:
'C -> 'D
source : ^Profunctor<'B,'C>
Returns: ^Profunctor<'B,'D>
Modifiers: inline Type parameters: 'C, 'D, ^Profunctor<'B,'C>, ^Profunctor<'B,'D> |
|
Full Usage:
second f source
Parameters:
'V -> 'W
source : ^Bifunctor<'T,'V>
Returns: ^Bifunctor<'T,'W>
Modifiers: inline Type parameters: 'V, 'W, ^Bifunctor<'T,'V>, ^Bifunctor<'T,'W> |
Function or value | Description |
Full Usage:
catComp f g
Parameters:
^Category<'U,'V>
g : 'Category<'T,'U>
Returns: 'Category<'T,'V>
Modifiers: inline Type parameters: ^Category<'U,'V>, 'Category<'T,'U>, 'Category<'T,'V> |
|
Full Usage:
catId
Returns: ^Category<'T,'T>
Modifiers: inline Type parameters: ^Category<'T,'T> |
|
Full Usage:
getCatId ()
Parameters:
unit
Returns: ^Category<'T,'T>
Modifiers: inline Type parameters: ^Category<'T,'T> |
Function or value | Description |
Full Usage:
f *** g
Parameters:
'Arrow<'T1,'U1>
g : 'Arrow<'T2,'U2>
Returns: ^Arrow<('T1*'T2),('U1*'U2)>
Modifiers: inline Type parameters: 'Arrow<'T1,'U1>, 'Arrow<'T2,'U2>, ^Arrow<('T1 * 'T2),('U1 * 'U2)> |
|
Full Usage:
arr f
Parameters:
'T -> 'U
Returns: ^Arrow<'T,'U>
Modifiers: inline Type parameters: 'T, 'U, ^Arrow<'T,'U> |
|
Full Usage:
arrFirst f
Parameters:
^Arrow<'T,'U>
Returns: ^Arrow<('T*'V),('U*'V)>
Modifiers: inline Type parameters: ^Arrow<'T,'U>, ^Arrow<('T * 'V),('U * 'V)> |
|
Full Usage:
arrSecond f
Parameters:
^Arrow<'T,'U>
Returns: ^Arrow<('V*'T),('V*'U)>
Modifiers: inline Type parameters: ^Arrow<'T,'U>, ^Arrow<('V * 'T),('V * 'U)> |
|
Full Usage:
fanout f g
Parameters:
'Arrow<'T,'U1>
g : 'Arrow<'T,'U2>
Returns: ^Arrow<'T,('U1*'U2)>
Modifiers: inline Type parameters: 'Arrow<'T,'U1>, 'Arrow<'T,'U2>, ^Arrow<'T,('U1 * 'U2)> |
Function or value | Description |
Full Usage:
f +++ g
Parameters:
'ArrowChoice<'T1,'U1>
g : 'ArrowChoice<'T2,'U2>
Returns: ^ArrowChoice
Modifiers: inline Type parameters: 'ArrowChoice<'T1,'U1>, 'ArrowChoice<'T2,'U2>, ^ArrowChoice<Choice<'T2,'T1>,Choice<'U2,'U1>> |
|
Full Usage:
fanin f g
Parameters:
'ArrowChoice<'T,'V>
g : 'ArrowChoice<'U,'V>
Returns: ^ArrowChoice
Modifiers: inline Type parameters: 'ArrowChoice<'T,'V>, 'ArrowChoice<'U,'V>, ^ArrowChoice<Choice<'U,'T>,'V> |
|
Full Usage:
left f
Parameters:
^ArrowChoice<'T,'U>
Returns: ^ArrowChoice
Modifiers: inline Type parameters: ^ArrowChoice<'T,'U>, ^ArrowChoice<Choice<'V,'T>,Choice<'V,'U>> |
|
Full Usage:
right f
Parameters:
^ArrowChoice<'T,'U>
Returns: ^ArrowChoice
Modifiers: inline Type parameters: ^ArrowChoice<'T,'U>, ^ArrowChoice<Choice<'T,'V>,Choice<'U,'V>> |
Function or value | Description |
Full Usage:
app
Returns: ^ArrowApply<('ArrowApply<'T,'U>*'T)>,'U)>
Modifiers: inline Type parameters: ^ArrowApply<('ArrowApply<'T,'U> * 'T)>,'U)> |
|
Full Usage:
getApp ()
Parameters:
unit
Returns: ^ArrowApply<('ArrowApply<'T,'U>*'T)>,'U)>
Modifiers: inline Type parameters: ^ArrowApply<('ArrowApply<'T,'U> * 'T)>,'U)> |
Function or value | Description | ||
Full Usage:
exists predicate source
Parameters:
'T -> bool
-
The function to test the input elements.
source : ^Foldable<'T>
-
The input foldable.
Returns: bool
True if any element satisfies the predicate.
Modifiers: inline Type parameters: 'T, ^Foldable<'T> |
The predicate is applied to the elements of the input foldable. If any application returns true then the overall result is true and no further elements are tested. Otherwise, false is returned.
|
||
Full Usage:
find predicate source
Parameters:
'T -> bool
-
The function to test the input elements.
source : ^Foldable<'T>
-
The input foldable.
Returns: 'T
The first element that satisfies the predicate.
Modifiers: inline Type parameters: 'T, ^Foldable<'T> |
|
||
Full Usage:
fold folder state foldable
Parameters:
'State -> 'T -> 'State
-
The function to update the state given the input elements.
state : 'State
-
The initial state.
foldable : ^Foldable<'T>
-
The input foldable.
Returns: 'State
The final state value.
Modifiers: inline Type parameters: 'State, 'T, ^Foldable<'T> |
Applies a function to each element of the foldable, threading an accumulator argument
through the computation. Take the second argument, and apply the function to it
and the first element of the foldable. Then feed this result into the function along
with the second element and so on. Return the final result.
If the input function is
|
||
Full Usage:
foldMap f x
Parameters:
'T -> 'Monoid
x : ^Foldable<'T>
Returns: 'Monoid
Modifiers: inline Type parameters: 'T, 'Monoid, ^Foldable<'T> |
|||
Full Usage:
forall predicate source
Parameters:
'T -> bool
-
The function to test the input elements.
source : ^Foldable<'T>
-
The input foldable.
Returns: bool
True if all of the elements satisfy the predicate.
Modifiers: inline Type parameters: 'T, ^Foldable<'T> |
The predicate is applied to the elements of the input foldable. If any application returns false then the overall result is false and no further elements are tested. Otherwise, true is returned.
|
||
Full Usage:
head source
Parameters:
^Foldable<'T>
-
The input flodable.
Returns: 'T
The first element of the foldable.
Modifiers: inline Type parameters: ^Foldable<'T>, 'T |
|
||
Full Usage:
intercalate sep source
Parameters:
^Monoid
source : ^Foldable<'Monoid>
Returns: ^Monoid
Modifiers: inline Type parameters: ^Monoid, ^Foldable<'Monoid> |
|||
Full Usage:
length source
Parameters:
^Foldable<'T>
-
The input foldable.
Returns: int
The length of the foldable.
Modifiers: inline Type parameters: ^Foldable<'T> |
|||
Full Usage:
maxBy projection source
Parameters:
'T -> 'U
source : ^Foldable<'T>
Returns: 'T
Modifiers: inline Type parameters: 'T, 'U, ^Foldable<'T> |
|||
Full Usage:
maximum source
Parameters:
^Foldable<'T>
Returns: 'T
Modifiers: inline Type parameters: ^Foldable<'T>, 'T |
|||
Full Usage:
minBy projection source
Parameters:
'T -> 'U
source : ^Foldable<'T>
Returns: 'T
Modifiers: inline Type parameters: 'T, 'U, ^Foldable<'T> |
|||
Full Usage:
minimum source
Parameters:
^Foldable<'T>
Returns: 'T
Modifiers: inline Type parameters: ^Foldable<'T>, 'T |
|||
Full Usage:
nth n source
Parameters:
int
source : ^Foldable<'T>
Returns: 'T
Modifiers: inline Type parameters: ^Foldable<'T>, 'T |
|||
Full Usage:
pick chooser source
Parameters:
'T -> 'U option
-
The function to generate options from the elements.
source : ^Foldable<'T>
-
The input foldable.
Returns: 'U
The first resulting value.
Modifiers: inline Type parameters: 'T, 'U, ^Foldable<'T> |
|
||
Full Usage:
toArray source
Parameters:
^a
-
The input foldable.
Returns: 'T[]
The array of foldable elements.
Modifiers: inline Type parameters: ^a, 'T |
|||
Full Usage:
toList source
Parameters:
^a
-
The input foldable.
Returns: 'T list
The list of foldable elements.
Modifiers: inline Type parameters: ^a, 'T |
|||
Full Usage:
toSeq source
Parameters:
^Foldable<'T>
-
The input foldable.
Returns: 'T seq
The sequence of elements in the foldable.
Modifiers: inline Type parameters: ^Foldable<'T>, 'T |
|||
Full Usage:
tryFind predicate source
Parameters:
'T -> bool
-
The function to test the input elements.
source : ^Foldable<'T>
-
The input foldable.
Returns: 'T option
The first element for which the predicate returns true, or None if
every element evaluates to false.
Modifiers: inline Type parameters: 'T, ^Foldable<'T> |
|
||
Full Usage:
tryHead source
Parameters:
^Foldable<'T>
-
The input foldable.
Returns: 'T option
The first element of the foldable or None.
Modifiers: inline Type parameters: ^Foldable<'T>, 'T |
|||
Full Usage:
tryLast source
Parameters:
^Foldable<'T>
-
The input foldable.
Returns: 'T option
The last element of the foldable or None.
Modifiers: inline Type parameters: ^Foldable<'T>, 'T |
|||
Full Usage:
tryPick chooser source
Parameters:
'T -> 'U option
-
The function to generate options from the elements.
source : ^Foldable<'T>
-
The input foldable.
Returns: 'U option
The first resulting value or None.
Modifiers: inline Type parameters: 'T, 'U, ^Foldable<'T> |
|
Function or value | Description |
Full Usage:
gather f t
Parameters:
'T -> 'ZipFunctor<'U>
t : ^Traversable<'T>
Returns: ^ZipFunctor<'Traversable<'U>>
Modifiers: inline Type parameters: 'T, 'ZipFunctor<'U>, ^Traversable<'T>, ^ZipFunctor<'Traversable<'U>> |
|
Full Usage:
sequence t
Parameters:
^Traversable<'Functor<'T>>
Returns: ^Functor<'Traversable<'T>>
Modifiers: inline Type parameters: ^Traversable<'Functor<'T>>, ^Functor<'Traversable<'T>> |
|
Full Usage:
transpose t
Parameters:
^Traversable<'ZipFunctor<'T>>
Returns: ^ZipFunctor<'Traversable<'T>>
Modifiers: inline Type parameters: ^Traversable<'ZipFunctor<'T>>, ^ZipFunctor<'Traversable<'T>> |
|
Full Usage:
traverse f t
Parameters:
'T -> 'Functor<'U>
t : ^Traversable<'T>
Returns: ^Functor<'Traversable<'U>>
Modifiers: inline Type parameters: 'T, 'Functor<'U>, ^Traversable<'T>, ^Functor<'Traversable<'U>> |
Function or value | Description |
Full Usage:
bifold leftFolder rightFolder state source
Parameters:
'State -> 'T1 -> 'State
rightFolder : 'State -> 'T2 -> 'State
state : 'State
source : ^Bifoldable<'T1,'T2>
Returns: 'State
Modifiers: inline Type parameters: 'State, 'T1, 'T2, ^Bifoldable<'T1,'T2> |
|
Full Usage:
bifoldBack leftFolder rightFolder source state
Parameters:
'T1 -> 'State -> 'State
rightFolder : 'T2 -> 'State -> 'State
source : ^Bifoldable<'T1,'T2>
state : 'State
Returns: 'State
Modifiers: inline Type parameters: 'T1, 'State, 'T2, ^Bifoldable<'T1,'T2> |
|
Full Usage:
bifoldMap f g source
Parameters:
'T1 -> 'Monoid
g : 'T2 -> 'Monoid
source : ^Bifoldable<'T1,'T2>
Returns: 'Monoid
Modifiers: inline Type parameters: 'T1, 'Monoid, 'T2, ^Bifoldable<'T1,'T2> |
|
Full Usage:
bisum source
Parameters:
^Bifoldable<'Monoid,'Monoid>
Returns: 'Monoid
Modifiers: inline Type parameters: ^Bifoldable<'Monoid,'Monoid>, 'Monoid |
Function or value | Description |
Full Usage:
bisequence source
Parameters:
^Bitraversable<'Functor<'T>,'Functor<'U>>
Returns: ^Functor<'Bitraversable<'T,'U>>
Modifiers: inline Type parameters: ^Bitraversable<'Functor<'T>,'Functor<'U>>, ^Functor<'Bitraversable<'T,'U>> |
|
Full Usage:
bitraverse f g source
Parameters:
'T1 -> 'Functor<'T2>
g : 'U1 -> 'Functor<'U2>
source : ^Bitraversable<'T1,'U1>
Returns: ^Functor<'Bitraversable<'T2,'U2>>
Modifiers: inline Type parameters: 'T1, 'Functor<'T2>, 'U1, 'Functor<'U2>, ^Bitraversable<'T1,'U1>, ^Functor<'Bitraversable<'T2,'U2>> |
|
Function or value | Description | ||
Full Usage:
choosei mapping source
Parameters:
'K -> 'T -> 'U option
-
The mapping function, taking index and element as parameters.
source : ^FunctorWithIndex<'T>
-
The input collection.
Returns: 'FunctorWithIndex<'U>
Modifiers: inline Type parameters: 'K, 'T, 'U, ^FunctorWithIndex<'T>, 'FunctorWithIndex<'U> |
|||
Full Usage:
findIndex predicate source
Parameters:
'T -> bool
-
The function to test the input elements.
source : ^Indexable<'T>
-
The input collection.
Returns: 'Index
The index of the first element that satisfies the predicate.
Modifiers: inline Type parameters: 'T, ^Indexable<'T>, 'Index |
|
||
Full Usage:
findLastSliceIndex slice source
Parameters:
^Indexable<'T>
-
The slice to be searched.
source : ^Indexable<'T>
-
The input collection.
Returns: 'Index
The index of the slice.
Modifiers: inline Type parameters: ^Indexable<'T>, 'Index |
|
||
Full Usage:
findSliceIndex slice source
Parameters:
^Indexable<'T>
-
The slice to be searched.
source : ^Indexable<'T>
-
The input collection.
Returns: 'Index
The index of the slice.
Modifiers: inline Type parameters: ^Indexable<'T>, 'Index |
|
||
Full Usage:
foldi folder state source
Parameters:
'State -> 'K -> 'T -> 'State
state : 'State
source : ^FoldableWithIndex<'T>
Returns: 'State
Modifiers: inline Type parameters: 'State, 'K, 'T, ^FoldableWithIndex<'T> |
|||
Full Usage:
item n source
Parameters:
'K
source : ^Indexed<'T>
Returns: 'T
Modifiers: inline Type parameters: 'K, ^Indexed<'T>, 'T |
|||
Full Usage:
iteri action source
Parameters:
'K -> 'T -> unit
source : ^FunctorWithIndex<'T>
Modifiers: inline Type parameters: 'K, 'T, ^FunctorWithIndex<'T> |
|||
Full Usage:
mapi mapping source
Parameters:
'K -> 'T -> 'U
source : ^FunctorWithIndex<'T>
Returns: 'FunctorWithIndex<'U>
Modifiers: inline Type parameters: 'K, 'T, 'U, ^FunctorWithIndex<'T>, 'FunctorWithIndex<'U> |
|||
Full Usage:
traversei f t
Parameters:
'K -> 'T -> 'Applicative<'U>
t : ^Traversable<'T>>
Returns: ^Applicative<'Traversable<'U>>
Modifiers: inline Type parameters: 'K, 'T, 'Applicative<'U>, ^Traversable<'T>>, ^Applicative<'Traversable<'U>> |
|||
Full Usage:
tryFindIndex predicate source
Parameters:
'T -> bool
-
The function to test the input elements.
source : ^Indexable<'T>
-
The input collection.
Returns: 'Index option
The index of the first element that satisfies the predicate, or None .
Modifiers: inline Type parameters: 'T, ^Indexable<'T>, 'Index |
|
||
Full Usage:
tryFindLastSliceIndex slice source
Parameters:
^Indexable<'T>
-
The slice to be searched.
source : ^Indexable<'T>
-
The input collection.
Returns: 'Index option
The index of the slice or None .
Modifiers: inline Type parameters: ^Indexable<'T>, 'Index |
|||
Full Usage:
tryFindSliceIndex slice source
Parameters:
^Indexable<'T>
-
The slice to be searched.
source : ^Indexable<'T>
-
The input collection.
Returns: 'Index option
The index of the slice or None .
Modifiers: inline Type parameters: ^Indexable<'T>, 'Index |
|||
Full Usage:
tryItem n source
Parameters:
'K
source : ^Indexed<'T>
Returns: 'T option
Modifiers: inline Type parameters: 'K, ^Indexed<'T>, 'T |
Function or value | Description |
Full Usage:
s =>> g
Parameters:
^Comonad<'T>
g : ^Comonad<'T> -> 'U
Returns: ^Comonad<'U>
Modifiers: inline Type parameters: ^Comonad<'T>, ^Comonad<'U>, 'U |
|
Full Usage:
duplicate x
Parameters:
^Comonad<'T>
Returns: ^Comonad<'Comonad<'T>>
Modifiers: inline Type parameters: ^Comonad<'T>, ^Comonad<'Comonad<'T>> |
|
Full Usage:
extend g s
Parameters:
^Comonad<'T> -> 'U
s : ^Comonad<'T>
Returns: ^Comonad<'U>
Modifiers: inline Type parameters: ^Comonad<'T>, ^Comonad<'U>, 'U |
|
Full Usage:
extract x
Parameters:
^Comonad<'T>
Returns: 'T
Modifiers: inline Type parameters: ^Comonad<'T>, 'T |
Function or value | Description |
Full Usage:
ask
Returns: ^MonadReader<'R,'T>
Modifiers: inline Type parameters: ^MonadReader<'R,'T> |
|
Full Usage:
bindError handler value
Parameters:
'E1 -> ^'MonadError<'E2,'T>
value : ^'MonadError<'E1,'T>
Returns: ^'MonadError<'E2,'T>
Modifiers: inline Type parameters: 'E1, ^'MonadError<'E2,'T>, ^'MonadError<'E1,'T> |
|
Full Usage:
callCC f
Parameters:
('T -> 'MonadCont<'R,'U>) -> ^MonadCont<'R,'T>
Returns: ^MonadCont<'R,'T>
Modifiers: inline Type parameters: 'T, 'MonadCont<'R,'U>, ^MonadCont<'R,'T> |
|
Full Usage:
catch value handler
Parameters:
^'MonadError<'E1,'T>
handler : 'E1 -> ^'MonadError<'E2,'T>
Returns: ^'MonadError<'E2,'T>
Modifiers: inline Type parameters: ^'MonadError<'E1,'T>, ^'MonadError<'E2,'T>, 'E1 |
Example
val doSomeOperation: x: int -> 'a
val x: int
val async: AsyncBuilder
union case Result.Ok: ResultValue: 'T -> Result<'T,'TError>
union case Result.Error: ErrorValue: 'TError -> Result<'T,'TError>
val s: 'a
|
Full Usage:
get
Returns: ^MonadState<'S,'S>
Modifiers: inline Type parameters: ^MonadState<'S, 'S> |
|
Full Usage:
gets f
Parameters:
'S -> 'T
Returns: ^MonadState<'S,'T>
Modifiers: inline |
|
Full Usage:
lift x
Parameters:
'Monad<'T>
Returns: ^MonadTrans<'Monad<'T>>
Modifiers: inline Type parameters: 'Monad<'T>, ^MonadTrans<'Monad<'T>> |
|
Full Usage:
liftAsync x
Parameters:
Async<'T>
Returns: ^MonadAsync<'T>
Modifiers: inline Type parameters: 'T, ^MonadAsync<'T> |
|
Full Usage:
listen m
Parameters:
'MonadWriter<'Monoid,'T>
-
The action to be executed.
Returns: ^MonadWriter<'Monoid,('T*'Monoid)>
Modifiers: inline Type parameters: 'MonadWriter<'Monoid,'T>, ^MonadWriter<'Monoid,('T * 'Monoid)> |
|
Full Usage:
local f m
Parameters:
'R1 -> 'R2
-
The function to modify the environment.
m : ^MonadReader<'R2,'T>
-
Reader to run in the modified environment.
Returns: ^MonadReader<'R1,'T>
Modifiers: inline Type parameters: 'R1, 'R2, ^MonadReader<'R2,'T>, ^MonadReader<'R1,'T> |
|
Full Usage:
modify f
Parameters:
'S -> 'S
Returns: ^MonadState<'S,unit>
Modifiers: inline |
|
Full Usage:
pass m
Parameters:
'MonadWriter<'Monoid,('T*('Monoid->'Monoid))>
Returns: ^MonadWriter<'Monoid,'T>
Modifiers: inline Type parameters: 'MonadWriter<'Monoid,('T * ('Monoid -> 'Monoid))>, ^MonadWriter<'Monoid,'T> |
|
Full Usage:
put x
Parameters:
'S
Returns: ^MonadState<'S,unit>
Modifiers: inline Type parameters: 'S, ^MonadState<'S, unit> |
|
Full Usage:
tell w
Parameters:
'Monoid
Returns: ^MonadWriter<'Monoid,unit>
Modifiers: inline Type parameters: 'Monoid, ^MonadWriter<'Monoid,unit> |
|
Full Usage:
throw error
Parameters:
'E
Returns: ^'MonadError<'E,'T>
Modifiers: inline Type parameters: 'E, ^'MonadError<'E,'T> |
Function or value | Description | ||||||
Full Usage:
choose chooser source
Parameters:
'T -> 'U option
-
A function that is applied to each element in the
collection and returns an option value. When the result is a Some then
the unwrapped value is included in the result collection, otherwise
it is discarded.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'U>
The result collection.
Modifiers: inline Type parameters: 'T, 'U, ^Collection<'T>, ^Collection<'U> |
|
||||||
Full Usage:
chunkBy projection source
Parameters:
'T -> 'Key
-
A function that transforms an element of the collection into a comparable key.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'Key*'Collection<'T>>
The result collection.
Modifiers: inline Type parameters: 'T, 'Key, ^Collection<'T>, ^Collection<'Key * 'Collection<'T>> |
Applies a key-generating function to each element of a collection and yields a collection of keys tupled with values. Each key contains a collection of all adjacent elements that match to this key, therefore keys are not unique but they can't be adjacent as each time the key changes, a new group is yield. The ordering of the original collection is respected.
|
||||||
Full Usage:
distinct source
Parameters:
^Collection<'T>when'T:equality
-
The input collection.
Returns: ^Collection<'T>when'T:equality
The result collection.
Modifiers: inline Type parameters: ^Collection<'T> when 'T : equality |
|
||||||
Full Usage:
distinctBy projection source
Parameters:
'T -> 'Key
-
A function transforming the collection items into comparable keys.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: 'T, 'Key, ^Collection<'T> |
|
||||||
Full Usage:
drop count source
Parameters:
int
-
The number of items to drop.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: ^Collection<'T> |
When count exceeds the number of elements in the collection it returns an empty collection instead of throwing an exception.
|
||||||
Full Usage:
filter predicate source
Parameters:
'T -> bool
-
The function to test the input elements.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
A collection containing only the elements that satisfy the predicate.
Modifiers: inline Type parameters: 'T, ^Collection<'T> |
|
||||||
Full Usage:
groupBy projection source
Parameters:
'T -> 'Key
-
A function that transforms an element of the collection into a comparable key.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'Key*'Collection<'T>>
The result collection.
Modifiers: inline Type parameters: 'T, 'Key, ^Collection<'T>, ^Collection<'Key * 'Collection<'T>> |
This function returns a collection that digests the whole initial collection as soon as that collection is iterated. As a result this function should not be used with large or infinite collections. The function makes no assumption on the ordering of the original collection.
|
||||||
Full Usage:
intersperse sep source
Parameters:
'T
source : ^Collection<'T>
Returns: ^Collection<'T>
Modifiers: inline Type parameters: 'T, ^Collection<'T> |
|||||||
Full Usage:
limit count source
Parameters:
int
-
The maximum number of items to return.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: ^Collection<'T> |
|
||||||
Full Usage:
ofList source
Parameters:
'T list
Returns: ^Collection<'T>
Modifiers: inline Type parameters: 'T, ^Collection<'T> |
|||||||
Full Usage:
ofSeq source
Parameters:
'T seq
Returns: ^Collection<'T>
Modifiers: inline Type parameters: 'T, ^Collection<'T> |
|||||||
Full Usage:
replace oldValue newValue source
Parameters:
^Collection
-
A collection that if part of the source collection
should be replaced with newValue.
newValue : ^Collection
-
The collection to replace oldValue with.
source : ^Collection
-
The input collection.
Returns: ^Collection
The resulting collection with oldValue replaced with newValue.
Modifiers: inline Type parameters: ^Collection |
|
||||||
Full Usage:
rev source
Parameters:
^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The reversed collection.
Modifiers: inline Type parameters: ^Collection<'T> |
|
||||||
Full Usage:
scan folder state source
Parameters:
'State -> 'T -> 'State
-
A function that updates the state with each element from the collection.
state : 'State
-
The initial state.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'State>
The resulting collection of computed states.
Modifiers: inline Type parameters: 'State, 'T, ^Collection<'T>, ^Collection<'State> |
|
||||||
Full Usage:
skip count source
Parameters:
int
-
The number of items to skip.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: ^Collection<'T> |
Throws
|
||||||
Full Usage:
skipWhile predicate source
Parameters:
'T -> bool
-
A function that evaluates to false when no more items should be skipped.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: 'T, ^Collection<'T> |
|
||||||
Full Usage:
sort source
Parameters:
^Collection<'T>when'T:comparison
-
The input collection.
Returns: ^Collection<'T>when'T:comparison
The result collection.
Modifiers: inline Type parameters: ^Collection<'T> when 'T : comparison |
This function makes no assumption on the ordering of the original collection. This is a stable sort, that is the original order of equal elements is preserved.
|
||||||
Full Usage:
sortBy projection source
Parameters:
'T -> 'Key
-
A function to transform items of the input collection into comparable keys.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: 'T, 'Key, ^Collection<'T> |
This function makes no assumption on the ordering of the original collection. This is a stable sort, that is the original order of equal elements is preserved.
|
||||||
Full Usage:
sortByDescending projection source
Parameters:
'T -> 'Key
-
A function to transform items of the input collection into comparable keys.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: 'T, 'Key, ^Collection<'T> |
This function makes no assumption on the ordering of the original collection. This is a stable sort, that is the original order of equal elements is preserved.
|
||||||
Full Usage:
split sep source
Parameters:
''Collection<'OrderedCollection>
source : ^OrderedCollection
Returns: ''Collection<'OrderedCollection>
Modifiers: inline Type parameters: ''Collection<'OrderedCollection>, ^OrderedCollection |
Example
Multiple items
val string: value: 'T -> string -------------------- type string = System.String type 'T list = List<'T>
Multiple items
val int: value: 'T -> int (requires member op_Explicit) -------------------- type int = int32 -------------------- type int<'Measure> = int |
||||||
Full Usage:
take count source
Parameters:
int
-
The number of items to take.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: ^Collection<'T> |
Throws
|
||||||
Full Usage:
takeWhile predicate source
Parameters:
'T -> bool
-
A function that evaluates to false when no more items should be returned.
source : ^Collection<'T>
-
The input collection.
Returns: ^Collection<'T>
The result collection.
Modifiers: inline Type parameters: 'T, ^Collection<'T> |
|
Function or value | Description |
Full Usage:
item1 tuple
Parameters:
^h
Returns: 'i
Modifiers: inline Type parameters: ^h, 'i |
|
Full Usage:
item2 tuple
Parameters:
^h
Returns: 'i
Modifiers: inline Type parameters: ^h, 'i |
|
Full Usage:
item3 tuple
Parameters:
^h
Returns: 'i
Modifiers: inline Type parameters: ^h, 'i |
|
Full Usage:
item4 tuple
Parameters:
^h
Returns: 'i
Modifiers: inline Type parameters: ^h, 'i |
|
Full Usage:
item5 tuple
Parameters:
^h
Returns: 'i
Modifiers: inline Type parameters: ^h, 'i |
|
Full Usage:
mapItem1 mapping tuple
Parameters:
'T -> 'U
tuple : ^('T*..)
Returns: '('U*..)
Modifiers: inline Type parameters: 'T, 'U, ^('T * ..), '('U * ..) |
|
Full Usage:
mapItem2 mapping tuple
Parameters:
'T -> 'U
tuple : ^('A*'T*..)
Returns: '('A*'U*..)
Modifiers: inline Type parameters: 'T, 'U, ^('A * 'T * ..), '('A * 'U * ..) |
|
Full Usage:
mapItem3 mapping tuple
Parameters:
'T -> 'U
tuple : ^('A*'B*'T*..)
Returns: '('A*'B*'U*..)
Modifiers: inline Type parameters: 'T, 'U, ^('A * 'B * 'T * ..), '('A * 'B * 'U * ..) |
|
Full Usage:
mapItem4 mapping tuple
Parameters:
'T -> 'U
tuple : ^('A*'B*'C*'T*..)
Returns: '('A*'B*'C*'U*..)
Modifiers: inline Type parameters: 'T, 'U, ^('A * 'B * 'C * 'T * ..), '('A * 'B * 'C * 'U * ..) |
|
Full Usage:
mapItem5 mapping tuple
Parameters:
'T -> 'U
tuple : ^('A*'B*'C*'D*'T*..)
Returns: '('A*'B*'C*'D*'U*..)
Modifiers: inline Type parameters: 'T, 'U, ^('A * 'B * 'C * 'D * 'T * ..), '('A * 'B * 'C * 'D * 'U * ..) |
Function or value | Description |
Full Usage:
explicit value
Parameters:
^T
Returns: ^U
Modifiers: inline Type parameters: ^T, ^U |
|
Full Usage:
ofBytes value
Parameters:
byte[]
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
ofBytesBE value
Parameters:
byte[]
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
ofBytesWithOptions isLtEndian startIndex value
Parameters:
bool
startIndex : int
value : byte[]
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
parse value
Parameters:
string
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
toBytes value
Parameters:
^a
Returns: byte[]
Modifiers: inline |
|
Full Usage:
toBytesBE value
Parameters:
^a
Returns: byte[]
Modifiers: inline |
|
Full Usage:
tryParse value
Parameters:
string
Returns: ^T option
Modifiers: inline Type parameters: ^T |
Function or value | Description |
Full Usage:
abs value
Parameters:
^Num
-
The input value.
Returns: ^Num
The absolute value of the input.
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
abs' value
Parameters:
^Num
-
The input value.
Returns: ^Num
The absolute value of the input.
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
div dividend divisor
Parameters:
^Num
divisor : ^Num
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
divRem dividend divisor
Parameters:
^Num
divisor : ^Num
Returns: ^Num * ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
fromBigInt x
Parameters:
bigint
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
getMaxValue ()
Parameters:
unit
Returns: ^a
Modifiers: inline |
|
Full Usage:
getMinValue ()
Parameters:
unit
Returns: ^a
Modifiers: inline |
|
Full Usage:
getOne ()
Parameters:
unit
Returns: ^b
Modifiers: inline Type parameters: ^b |
|
Full Usage:
getPi ()
Parameters:
unit
Returns: ^Floating
Modifiers: inline Type parameters: ^Floating |
|
Full Usage:
isqrt x
Parameters:
^Integral
Returns: ^Integral
Modifiers: inline Type parameters: ^Integral |
|
Full Usage:
maxValue
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
minValue
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
negate x
Parameters:
^Num
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
negate' x
Parameters:
^Num
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
one
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
pi
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
signum value
Parameters:
^Num
-
The input value.
Returns: ^Num
-1, 0, or 1 depending on the sign of the input.
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
signum' value
Parameters:
^Num
-
The input value.
Returns: ^Num
-1, 0, or 1 depending on the sign of the input.
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
sqrt x
Parameters:
^a
Returns: ^a
Modifiers: inline |
|
Full Usage:
sqrtRem x
Parameters:
^Integral
Returns: ^Integral * ^Integral
Modifiers: inline Type parameters: ^Integral |
|
Full Usage:
subtract x y
Parameters:
^Num
y : ^Num
Returns: ^Num
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
toBigInt x
Parameters:
^Integral
Returns: bigint
Modifiers: inline Type parameters: ^Integral |
|
Full Usage:
tryDiv dividend divisor
Parameters:
^Num
divisor : ^Num
Returns: ^Num option
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
tryNegate' x
Parameters:
^Num
Returns: ^Num option
Modifiers: inline Type parameters: ^Num |
|
Full Usage:
trySqrt x
Parameters:
^a
Returns: ^a option
Modifiers: inline |
|
Full Usage:
trySubtract x y
Parameters:
^Num
y : ^Num
Returns: ^Num option
Modifiers: inline Type parameters: ^Num |
Function or value | Description |
Full Usage:
choice x
Parameters:
^Foldable<'Alternative<'T>>
Returns: 'Alternative<'T>>
Modifiers: inline Type parameters: ^Foldable<'Alternative<'T>>, 'Alternative<'T>> |
|
|
|
Full Usage:
implicit x
Parameters:
^T
Returns: ^R
Modifiers: inline Type parameters: ^T, ^R |
|
Full Usage:
mfilter predicate m
Parameters:
'T -> bool
m : ^MonadZero<'T>
Returns: ^MonadZero<'T>
Modifiers: inline Type parameters: 'T, ^MonadZero<'T> |
|
Full Usage:
sum x
Parameters:
^Foldable<'Monoid>
Returns: ^Monoid
Modifiers: inline Type parameters: ^Foldable<'Monoid>, ^Monoid |
Active pattern | Description |
Full Usage:
(|Parsed|_|) str
Parameters:
string
Returns: ^T option
Modifiers: inline Type parameters: ^T |