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.
commit8b72e0db011cddb27aee1b9a0ca3cab63760ce38 authorevancz <info@elm-lang.org> dateThu 4 Oct 2012, 00:37 (14 years ago) parentd0bf866
2 files changed+6−6
core-js/List.js+4−4 core-js/Prelude.js+2−2
core-js/List.js+4−4
@@ -191,12 +191,12 @@ var List = function() {
191191 return concat(map(f_76)(x))
192192 }
193193 }
194− function forall(pred) {
194+ function all(pred) {
195195 return foldl(function(x) { return function(acc) {
196196 return acc && pred(x);
197197 };})(true);
198198 }
199− function exists(pred) {
199+ function any(pred) {
200200 return foldl(function(x) { return function(acc) {
201201 return acc || pred(x);
202202 };})(false);
@@ -464,8 +464,8 @@ var List = function() {
464464 concatMap:concatMap,
465465 and:and,
466466 or:or,
467− forall:forall,
468− exists:exists,
467+ all:all,
468+ any:any,
469469 sum:sum,
470470 product:product,
471471 maximum:maximum,
core-js/Prelude.js+2−2
@@ -77,8 +77,8 @@ var Prelude = function() {
7777 foldl1 : Data.List.foldl1,
7878 and : Data.List.and,
7979 or : Data.List.or,
80− forall : Data.List.forall,
81− exists : Data.List.exists,
80+ all : Data.List.all,
81+ any : Data.List.any,
8282 sum : Data.List.sum,
8383 product : Data.List.product,
8484 concat : Data.List.concat,