@Override
    public TensorFunction<NAMETYPE> withArguments(List<TensorFunction<NAMETYPE>> arguments) {
        if ( arguments.size() != 1)
            throw new IllegalArgumentException("Map must have 1 argument, got " + arguments.size());
        return new Map<>(arguments.get(0), mapper);
    }
The <i>map</i> tensor function produces a tensor where the given function is applied on each cell value.

@author bratseth
vespajlib/src/main/java/com/yahoo/tensor/functions/Map.java