Damian Conway <[EMAIL PROTECTED]> writes: > > As I understand things: > > > > BLOCK1 andthen BLOCK2 > > > > evaluates BLOCK1 and then if BLOCK1 evaluates to "true" evaluates > > BLOCK2. If BLOCK2 evaluates to "true" we're done. If BLOCK2 > > evaluates to "false", then BLOCK1 is re-evaluated. > > So how is that different from: > > do BLOCK1 until do BLOCK2 It's the same. But the real fun starts when blocks and functions can suspend and resume. { ... # Return value and suspend. suspend $i; # Next iteration will resume here ... } andthen { ... }; -- Johan
- RFC 104 (v1) Backtracking Perl6 RFC Librarian
- Re: Component wise || and RFC 82 (was Re: RFC 104... Damien Neil
- Uses for array notation (was Re: RFC 104 (v1) Bac... Jeremy Howard
- Array notation (was Re: RFC 104 (v1) Backtracking... Jeremy Howard
- Re: RFC 104 (v1) Backtracking raptor
- Re: RFC 104 (v1) Backtracking Jeremy Howard
- Re: RFC 104 (v1) Backtracking Jonathan Scott Duff
- Re: RFC 104 (v1) Backtracking:example raptor
- Re: RFC 104 (v1) Backtracking raptor
- Re: RFC 104 (v1) Backtracking Johan Vromans
- Re: RFC 104 (v1) Backtracking Jeremy Howard
- Re: RFC 104 (v1) Backtracking John Porter
- Re: RFC 104 (v1) Backtracking raptor
- Re: RFC 104 (v1) Backtracking Chaim Frenkel
- Re: RFC 104 (v1) Backtracking John Porter
- Re: RFC 104 (v1) Backtracking David L. Nicol