Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check rational type #2632 #2640

Merged
merged 2 commits into from Mar 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion doc/Type/Rational.pod6
Expand Up @@ -9,7 +9,9 @@
C<Rational> is the common role for numbers that are stored as pairs of numerator
and denominator. It is parameterized by the types of the numerator (C<NuT>) and
denominator (C<DeT>). By default, these are C<Int>, but other types of
C<Rational> are possible by using a different parameterization
C<Rational> are possible by using a different parameterization. In addition,
C<Rational> objects are immutable throughout their life.


class Positive does Rational[UInt] {};
my Positive $one-third = Positive.new(1,3);
Expand Down