unaryOperation method

Vector<T> unaryOperation(
  1. Map1<T, T> operation, {
  2. DataType<T>? dataType,
})

Returns a view of an unary operation.

Implementation

Vector<T> unaryOperation(Map1<T, T> operation, {DataType<T>? dataType}) =>
    UnaryOperationVector<T>(dataType ?? this.dataType, this, operation);