Skip to content
Prev 6716 / 10988 Next

[Rcpp-devel] feature proposal: ListOf

Cool. I've got lots on my plate right now, so this is not a priority.
Did you have a chance to look at the (simplistic) implementation of 
ListOf in dplyr: 
https://github.com/hadley/dplyr/blob/master/inst/include/tools/ListOf.h

The indexing operator should be proxified so that we could handle 
assignments, i.e.:

NumericVector z ;
ListOf<NumericVector> x( xxx );
x[0] = z ;

At the moment it only has read access because that's all I needed for 
now in dplyr.

So maybe if we wanted something more generic in Rcpp, this should be 
designed a bit more.

Romain

Le 25/10/2013 20:40, Kevin Ushey a ?crit :