Search notes:

R package: foreach

library(foreach);

squares <- foreach( i = 1:10 ) %do% {
  i^2;
}

typeof(squares);
#
#  "list"


as.integer(squares);
#
#   1   4   9  16  25  36  49  64  81 100
Github repository about-r, path: /packages/foreach/simple.R

See also

lapply(…)
R packages

Index