YAP6 Operator: Range Operators

by Adriano Ferreira

Another article of the series "Yet Another Perl 6 Operator"

In Perl 6, you may construct ranges with expressions like

$min  ..  $max
$min ^.. $max
$min ..^ $max
$min ^..^ $max

and even



Ed Avis
2008-01-27 07:54:20
*..0 # -Inf .. 0

What is the semantics of this? The first element in the range must be -Inf. But the second element?