John Siracusa: > Did this ever get resolved to anyone's satisfaction? While reading > EX6, I found myself wonder exactly what for() would look like in Perl 6 > code...
Well, the easiest signature to do is probably: sub for([EMAIL PROTECTED]) { PRE { @list.end =~ Code } ... } And just pop the coderef off the list. Of course, that's not as nice as it ought to be, so perhaps it's really: class List { method for(&code) { ... } multi for(List $list: &code) { $list.for(&code) } } Or somesuch. But that should be slurpy, I suppose. Damn... --Brent Dax <[EMAIL PROTECTED]> Perl and Parrot hacker