TransformedVectorExtension<T> extension
- on
-
- Vector<
T>
- Vector<
Methods
-
map<
S> (S callback(int index, T value), [DataType< S> ? dataType]) → Vector<S> -
Available on Vector<
Returns a read-only view on this Vector with all its elements lazily converted by calling the provided transformationT> , provided by the TransformedVectorExtension extensioncallback. -
transform<
S> (S read(int index, T value), {T write(int index, S value)?, DataType< S> ? dataType}) → Vector<S> -
Available on Vector<
Returns a view on this Vector with all its elements lazily converted by calling the providedT> , provided by the TransformedVectorExtension extensionreadtransformation. An optionally providedwritetransformation enables writing to the returned vector.