on master help sign in
Rename `forall` and `exists` to `all` and `any`. I ended up liking these names better and they do not clash with the potential introduction of `forall` in types.
8b72e0devancz
core-js/List.js+4−4
@@ -191,12 +191,12 @@ var List = function() {
191 return concat(map(f_76)(x))
191 return concat(map(f_76)(x))
192 }
192 }
193 }
193 }
194− function forall(pred) {
194+ function all(pred) {
195 return foldl(function(x) { return function(acc) {
195 return foldl(function(x) { return function(acc) {
196 return acc && pred(x);
196 return acc && pred(x);
197 };})(true);
197 };})(true);
198 }
198 }
199− function exists(pred) {
199+ function any(pred) {
200 return foldl(function(x) { return function(acc) {
200 return foldl(function(x) { return function(acc) {
201 return acc || pred(x);
201 return acc || pred(x);
202 };})(false);
202 };})(false);
@@ -464,8 +464,8 @@ var List = function() {
464 concatMap:concatMap,
464 concatMap:concatMap,
465 and:and,
465 and:and,
466 or:or,
466 or:or,
467− forall:forall,
467+ all:all,
468− exists:exists,
468+ any:any,
469 sum:sum,
469 sum:sum,
470 product:product,
470 product:product,
471 maximum:maximum,
471 maximum:maximum,
core-js/Prelude.js+2−2
@@ -77,8 +77,8 @@ var Prelude = function() {
77 foldl1 : Data.List.foldl1,
77 foldl1 : Data.List.foldl1,
78 and : Data.List.and,
78 and : Data.List.and,
79 or : Data.List.or,
79 or : Data.List.or,
80− forall : Data.List.forall,
80+ all : Data.List.all,
81− exists : Data.List.exists,
81+ any : Data.List.any,
82 sum : Data.List.sum,
82 sum : Data.List.sum,
83 product : Data.List.product,
83 product : Data.List.product,
84 concat : Data.List.concat,
84 concat : Data.List.concat,