Quoth [EMAIL PROTECTED] (Larry Wall):
> Okay, combining all these approaches minimalistically but without
> golfing we get something like:
> 
>     my @numbers = sort { rand }, constant @goal = 1..9;
>     my $steps = 0;
> 
>     until @numbers ~~ @goal {
>        say [EMAIL PROTECTED];
>        @numbers[ 0 ..^ prompt "Reverse how many? " ] .= reverse;
>        ++$steps;
>     }
> 
>     say "Done! That took you $steps steps.";

Can I just say: I've never written a line of Perl6, and I love it
already :).

Ben

-- 
I've seen things you people wouldn't believe: attack ships on fire off
the shoulder of Orion; I watched C-beams glitter in the dark near the
Tannhauser Gate. All these moments will be lost, in time, like tears in rain.
Time to die.                                            [EMAIL PROTECTED]

Reply via email to