is( $span.intersects( $span2 ), Bool::True, 'intersects' );
is( $span.intersects( $span3 ), Bool::False, 'doesn\'t intersect' );
is( $span.intersection( $span2 ).stringify, '[2,3]', 'intersection' );
is( $span.union( $span2 ).stringify, '[1,4]', 'union' );
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.