Help for this page

Select Code to Download


  1. or download this
    sub combinations {
        my $n = shift;
    ...
    use Data::Dumper;
    print Dumper [ combinations(2, (0, 1, 2, 3)) ];
    
  2. or download this
        return [] if $n == 0;