kactoos-jvm / nnl.rocks.kactoos.scalar / SumOfDoubleScalar / <init>
SumOfDoubleScalar(vararg scalars: Scalar<Double>)
SumOfDoubleScalar(vararg scalars: KScalar<Double>)SumOfDoubleScalar(scalars: Iterable<KScalar<Double>>)
Double Scalar which sums up the values of other Scalars of the same type.
Here is how you can use it to summarize double numbers:
val sum = SumOfDoubleScalar({ 1.0 }, { 2.1 }, { 3.1 }).invoke()
There is no thread-safety guarantee.
scalars - Scalars to sum up values from
Since 0.4