* Data mapping to a new List with given dimensions
(dims: DimensionIndex[], cb: MapCb)
| 795 | * Data mapping to a new List with given dimensions |
| 796 | */ |
| 797 | map(dims: DimensionIndex[], cb: MapCb): DataStore { |
| 798 | // TODO only clone picked chunks. |
| 799 | const target = this.clone(dims); |
| 800 | this._updateDims(target, dims, cb); |
| 801 | return target; |
| 802 | } |
| 803 | |
| 804 | /** |
| 805 | * @caution Danger!! Only used in dataStack. |