@most/disposable
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -51,15 +51,15 @@ /** @license MIT License (c) copyright 2010-2017 original author or authors */ | ||
// Non-mutating array operations | ||
// Non-mutating array operations | ||
// cons :: a -> [a] -> [a] | ||
// a with x prepended | ||
// reduce :: (a -> b -> a) -> a -> [b] -> a | ||
// accumulate via left-fold | ||
function reduce (f, z, a) { | ||
var r = z; | ||
for (var i = 0, l = a.length; i < l; ++i) { | ||
r = f(r, a[i], i); | ||
} | ||
return r | ||
// cons :: a -> [a] -> [a] | ||
// a with x prepended | ||
// reduce :: (a -> b -> a) -> a -> [b] -> a | ||
// accumulate via left-fold | ||
function reduce (f, z, a) { | ||
var r = z; | ||
for (var i = 0, l = a.length; i < l; ++i) { | ||
r = f(r, a[i], i); | ||
} | ||
return r | ||
} | ||
@@ -66,0 +66,0 @@ /** @license MIT License (c) copyright 2010-2017 original author or authors */ |
@@ -57,15 +57,15 @@ (function (global, factory) { | ||
// Non-mutating array operations | ||
// Non-mutating array operations | ||
// cons :: a -> [a] -> [a] | ||
// a with x prepended | ||
// reduce :: (a -> b -> a) -> a -> [b] -> a | ||
// accumulate via left-fold | ||
function reduce (f, z, a) { | ||
var r = z; | ||
for (var i = 0, l = a.length; i < l; ++i) { | ||
r = f(r, a[i], i); | ||
} | ||
return r | ||
// cons :: a -> [a] -> [a] | ||
// a with x prepended | ||
// reduce :: (a -> b -> a) -> a -> [b] -> a | ||
// accumulate via left-fold | ||
function reduce (f, z, a) { | ||
var r = z; | ||
for (var i = 0, l = a.length; i < l; ++i) { | ||
r = f(r, a[i], i); | ||
} | ||
return r | ||
} | ||
@@ -72,0 +72,0 @@ /** @license MIT License (c) copyright 2010-2017 original author or authors */ |
{ | ||
"name": "@most/disposable", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Reactive programming with lean, functions-only, curried, tree-shakeable API", | ||
@@ -58,4 +58,4 @@ "typings": "type-definitions/index.d.ts", | ||
"@most/prelude": "^1.5.3", | ||
"@most/types": "^0.9.0" | ||
"@most/types": "^0.9.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37238
Updated@most/types@^0.9.1