Search results
A representation for types with multiple constructors.
sum :: forall a f. Foldable f => Semiring a => f a -> a
Find the sum of the numeric values in a data structure.
sum :: forall a rep r. Generic a rep => GRouteDuplex rep r => Record r -> RouteDuplex' a
Builds a parser/printer from a record, where each record field corresponds to a constructor name for your data type.
Note: this implicitly inserts calls to end
for each constructor, making
the parser only valid for parsing URI suffixes. To parse URI prefixes, or
to just have more explicit control, use sumPrefix
.
sum :: forall s. Semiring s => Fold s s
A Fold
which computes the sum of its inputs
(generalized to work with an arbitrary Semiring
).
sum :: forall a. Semiring a => Vector a -> a
Sum vector elements
sum :: forall p a f. Semiring p => Foldable f => Functor f => f (Tuple a p) -> p
The sum of polynomial functors.
sum :: forall a i p rep r s. Generic a rep => GDualSum p s i rep r => Functor (p i) => Alt (p i) => Profunctor p => (forall x l. IsSymbol l => Proxy l -> Dual p s i x -> Dual p s i x) -> Record r -> Dual p s i a
sum :: forall a m e i rep r s. Monad m => Semigroup e => Generic a rep => GDualSum (Validator m e) s i rep r => (forall x l. IsSymbol l => Proxy l -> Dual (Validator m e) s i x -> Dual (Validator m e) s i x) -> Record r -> Dual (Validator m e) s i a
sum :: forall ri a. Sum ri a => Record ri -> Gen a
sum :: forall spec a. Sum spec a => Record spec -> Json -> Either JsonDecodeError a
sum :: forall sumSpec a. Sum sumSpec a => Record sumSpec -> (a -> Json)
sum :: forall d c b a. Iso (Sum a b) (Sum c d) (Either a b) (Either c d)
Iso between Sum and Either
Sum :: AggregationType
Sum :: PivotTableSummarizeFunction
sum :: Array HuffmanTree -> Number
sum :: forall eff. Histogram -> Eff (ref :: REF | eff) (Maybe Number)
Returns the sum of the measurements in the histogram. Returns 'Nothing' if there are no measurements.
sum :: forall eff. Timer -> Eff (ref :: REF | eff) (Maybe Number)
Returns the sum of the measurements in the timer.
sum :: forall b a. HasAdd b => HasReduce a => HasZero b => a b -> b
Adds all the elements of a container together. If the container is empty,
returns zero
.
[1, 2, 3] :sum -- 6
([] :: Array Int) :sum -- 0
["ab", "cd", "ef"] :sum -- "abcdef"
([] :: Array String) :sum -- ""
sum :: forall s. Semiring s => Fold s s
A Fold
which computes the sum of its inputs
(generalized to work with an arbitrary Semiring
).
sum :: forall r rep e m a. Monad m => Generic a rep => GDualSum (Validator m (Errors (JsonError e))) Json rep r => Record r -> JsonDual m e a
sum :: forall b a. UnaryOperator a b b
The Sum
of two comonads, which allows us to be in one state or the other
at a time, remembering the other state. We can also move from one state to
the other using the moveLeft
and moveRight
actions.
Sum :: forall f a g. Boolean -> (f a) -> (g a) -> Sum f g a
sum :: StringConst "sum"
sum :: forall x r. Semiring x => Run (Producer x r) Unit -> Run r x
Returns the sum of values yielded by a Producer.
sum :: forall a r. Arith a a a r => Array a -> a
sum :: forall a. Array a -> a
SumL :: forall a c b. (a c) -> Sum a b c
SumR :: forall b c a. (b c) -> Sum a b c
sum_ :: forall a s. Col s a -> Aggr s (Maybe String)
sumOf :: forall s t a b. Semiring a => Fold (Additive a) s t a b -> s -> a
The sum of all foci of a Fold
.
a + b = c
SumL_2 :: forall p a b q. (p a b) -> Sum_2 p q a b
SumR_2 :: forall q a b p. (q a b) -> Sum_2 p q a b
sumInl :: forall r b a. Prism (Sum a r) (Sum b r) a b
Prism into the Inl of Sum
sumInr :: forall b a l. Prism (Sum l a) (Sum l b) a b
Prism into the Inr of Sum
summary :: forall w i. Node HTMLsummary w i
summary :: Array Props -> Array ReactElement -> ReactElement
summary :: Array Props -> Array ReactElement -> ReactElement
summary :: String -> Props
summary :: forall e. Markup e -> Markup e
summary :: String -> Attribute
summary :: Selector