Range consolidation: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
Thundergnat (talk | contribs) (Fix up some internal links) |
||
Line 1,128: | Line 1,128: | ||
(formerly Perl 6) |
(formerly Perl 6) |
||
{{works with|Rakudo|2018.12}} |
{{works with|Rakudo|2018.12}} |
||
In |
In Raku, a Range is a first class object with its own specialized notation. Raku Ranges allow for exclusion of the boundary numbers. This example doesn't since it isn't a requirement in this task. Much of the logic is lifted from the [[Set_of_real_numbers#Raku|Set_of_real_numbers]] task with simplified logic for the much simpler requirements. |
||
Note: the output is in standard [https://docs.perl6.org/type/Range |
Note: the output is in standard [https://docs.perl6.org/type/Range Raku notation for Ranges]. |
||
<lang perl6># Union |
<lang perl6># Union |