On 6/7/05, Luke Palmer <[EMAIL PROTECTED]> wrote:
> Then let's put it this way:
> 
>    sub foo () {
>        for 0..10 {
>            when 6 { return 42 }
>        }
>        return 26;
>    }
> 
> And if that didn't do it, then let's write it equivalently as:
> 
>    sub foo () {
>        &map(-> $_ { return 42 }, 0..10);
>        return 26;
>    }

Not that it's that important to the argument, but of course I mean:

     sub foo() { 
         &map(-> $_ { return 42 when 6 }, 0..10);
         return 26;
     }

Luke

Reply via email to