See the 'iterators' package on CRAN.
-- Bert
Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
Clifford Stoll
On Tue, Aug 12, 2014 at 12:28 AM, peter dalgaard wrote:
>
> On 12 Aug 20
On 12 Aug 2014, at 08:29 , Simon Knapp wrote:
> Hi List,
>
> Is it possible to define how 'in' works for an object of a specific class
> (to achieve a similar result to implementing the iterator protocol in a
> class Python)?
>
No, because 'in' doesn't really exist, it is "syntactic sugar" to
Hi List,
Is it possible to define how 'in' works for an object of a specific class
(to achieve a similar result to implementing the iterator protocol in a
class Python)?
Cheers,
Simon Knapp
[[alternative HTML version deleted]]
__
R-devel@r-pro