Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (11 sloc) 0.263 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
use Test;
use List::Utils;

{
    my @a = permute((1, 2, 3));
    is @a.elems, 6, "(1, 2, 3) has 6 permutations";
}

{
    my @a := permute(1..100);
    is @a[0].elems, 100, "permute(1..100) is lazy, and the first thing it returns is 100 elements long";
}

done;
Something went wrong with that request. Please try again.