UNPKG
tamda
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Practical functional programming library for TypeScript
github.com/rabelloo/tamda
rabelloo/tamda
tamda
/
dist
/
number
/
mean.js
7 lines
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{ infer }
from
'../function/infer'
;
import
{ sum }
from
'./sum'
;
export
function
mean
(
) {
return
inferred.
apply
(
undefined
,
arguments
); }
const
inferred =
infer
(
(
array
) =>
sum
(array) / array.
length
);
//# sourceMappingURL=mean.js.map