Comparing version 0.2.1 to 0.2.2
@@ -15,2 +15,7 @@ # Changelog | ||
# 0.2.2 | ||
- **Bug Fix** | ||
- fix `Some.reduce` so it calls `f`, https://github.com/gcanti/fp-ts/pull/45 (@leemhenson) | ||
# 0.2.1 | ||
@@ -17,0 +22,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { identity, constant, constFalse, constTrue } from './function'; | ||
import { constant, constFalse, constTrue } from './function'; | ||
export var URI = 'Option'; | ||
@@ -89,3 +89,3 @@ var None = (function () { | ||
Some.prototype.reduce = function (f, b) { | ||
return this.fold(constant(b), identity); | ||
return this.fold(constant(b), function (a) { return f(b, a); }); | ||
}; | ||
@@ -92,0 +92,0 @@ Some.prototype.traverse = function (applicative) { |
@@ -93,3 +93,3 @@ "use strict"; | ||
Some.prototype.reduce = function (f, b) { | ||
return this.fold(function_1.constant(b), function_1.identity); | ||
return this.fold(function_1.constant(b), function (a) { return f(b, a); }); | ||
}; | ||
@@ -96,0 +96,0 @@ Some.prototype.traverse = function (applicative) { |
{ | ||
"name": "fp-ts", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Functional programming in TypeScript", | ||
@@ -37,3 +37,3 @@ "files": [ | ||
"mocha": "3.2.0", | ||
"ts-node": "2.0.0", | ||
"ts-node": "3.0.2", | ||
"tslint": "4.4.2", | ||
@@ -40,0 +40,0 @@ "tslint-config-standard": "4.0.0", |
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
392178