Skip to content

Commit

Permalink
Merge pull request #2640 from antoniogamiz/master
Browse files Browse the repository at this point in the history
check rational type #2632
  • Loading branch information
AlexDaniel committed Mar 2, 2019
2 parents b9de031 + 839c6ba commit ccd207a
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit ccd207a

Please sign in to comment.