MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / Lapply

Method Lapply

inst/include/Rcpp/sugar/functions/lapply.h:39–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 typedef typename ::Rcpp::traits::result_of<Function, T>::type result_type ;
38
39 Lapply( const VEC& vec_, Function fun_ ) :
40 vec(vec_), fun(fun_){}
41
42 inline SEXP operator[]( R_xlen_t i ) const {
43 return Rcpp::wrap( fun( vec[i] ) );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected