map method

Array map(
  1. double mappingFunc(
    1. double,
    2. Tuple2<int, int>
    )
)

Implementation

Array map(double Function(double, Tuple2<int, int>) mappingFunc) {
  return Array(
      values: enumerate(values)
          .map((iLine) => enumerate(iLine.item2)
              .map((jValue) => mappingFunc(
                  jValue.item2, Tuple2(iLine.item1, jValue.item1)))
              .toList())
          .toList(),
      shape: shape);
}