Re: [Rd] for loop over S4

2009-10-13 Thread Romain Francois
Oops, forgot to add the R code. On 10/13/2009 03:42 PM, Romain Francois wrote: Hello, Here is a more complete patch implementing an iterating scheme inspired from the java Iterable/Iterator design. Nothing is changed for non S4 objects. The patch contains 4 generic functions : is.iterable

Re: [Rd] for loop over S4

2009-10-13 Thread Romain Francois
Hello, Here is a more complete patch implementing an iterating scheme inspired from the java Iterable/Iterator design. Nothing is changed for non S4 objects. The patch contains 4 generic functions : is.iterable : indicates if an object is iterable. The default method returns FALSE iterat