sum package:rio
The
sum function computes the sum of the numbers of a
structure.
O(n) Compute the sum of the elements
Examples
>>> import qualified Data.Vector as V
>>> V.sum $ V.fromList [300,20,1 :: Int]
321
>>> V.sum (V.empty :: V.Vector Int)
0
O(n) Compute the sum of the elements
Examples
>>> import qualified Data.Vector as V
>>> V.sum $ V.fromList [300,20,1 :: Int]
321
>>> V.sum (V.empty :: V.Vector Int)
0
O(n) Compute the sum of the elements
Examples
>>> import qualified Data.Vector.Storable as VS
>>> VS.sum $ VS.fromList [300,20,1 :: Int]
321
>>> VS.sum (VS.empty :: VS.Vector Int)
0
O(n) Compute the sum of the elements
Examples
>>> import qualified Data.Vector.Unboxed as VU
>>> VU.sum $ VU.fromList [300,20,1 :: Int]
321
>>> VU.sum (VU.empty :: VU.Vector Int)
0
The sum of a collection of actions, generalizing
concat.
>>> asum [Just "Hello", Nothing, Just "World"]
Just "Hello"
The sum of a collection of actions, generalizing
biconcat.
The
bisum function computes the sum of the numbers of a
structure.
The sum of a collection of actions, generalizing
concat. As of
base 4.8.0.0,
msum is just
asum, specialized to
MonadPlus.
Is this time zone just persisting for the summer?