map<T> method

List<T> map<T>(
  1. IArrayMapFunction<T> mapFunction
)

Map (helper method)

Implementation

List<T> map<T>(IArrayMapFunction<T> mapFunction)
{
  List<T> collector = [];

  for (int i=0; i < size(); i++)
  {
    collector.add( mapFunction( get(i) ) );
  }

  return collector;
}