Skip to content

Commit

Permalink
the domain of a predicate is now the intersection of the supertypes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Mar 26, 2019
1 parent ddf7022 commit 3738d02
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1350,8 +1350,9 @@
//.
//. - an array of supertypes (exposed as `t.supertypes`); and
//.
//. - a predicate which accepts any JavaScript value and returns `true` if
//. (and only if) the value is a member of `t`.
//. - a predicate that accepts any value that is a member of every one of
//. the given supertypes, and returns `true` if (and only if) the value
//. is a member of `t`.
//.
//. For example:
//.
Expand Down Expand Up @@ -1444,8 +1445,9 @@
//.
//. - an array of supertypes (exposed as `t.supertypes`);
//.
//. - a predicate which accepts any JavaScript value and returns `true`
//. if (and only if) the value is a member of `t x` for some type `x`;
//. - a predicate that accepts any value that is a member of every one of
//. the given supertypes, and returns `true` if (and only if) the value
//. is a member of `t x` for some type `x`;
//.
//. - a function which takes any value of type `t a` and returns an array
//. of the values of type `a` contained in the `t` (exposed as
Expand Down Expand Up @@ -1578,9 +1580,9 @@
//.
//. - an array of supertypes (exposed as `t.supertypes`);
//.
//. - a predicate which accepts any JavaScript value and returns `true`
//. if (and only if) the value is a member of `t x y` for some types
//. `x` and `y`;
//. - a predicate that accepts any value that is a member of every one of
//. the given supertypes, and returns `true` if (and only if) the value
//. is a member of `t x y` for some types `x` and `y`;
//.
//. - a function which takes any value of type `t a b` and returns an array
//. of the values of type `a` contained in the `t` (exposed as
Expand Down

0 comments on commit 3738d02

Please sign in to comment.