[[Rcpp::export]]
| 376 | |
| 377 | // [[Rcpp::export]] |
| 378 | NumericVector runit_sapply_lambda(NumericVector xx){ |
| 379 | NumericVector res = sapply(xx, [](double x) { return x*x; }); |
| 380 | return res; |
| 381 | } |
| 382 | |
| 383 | // [[Rcpp::export]] |
| 384 | LogicalVector runit_sapply_square( NumericVector xx){ |