mapToBuffer

inline fun <T, R : Any> StructureND<T>.mapToBuffer(factory: BufferFactory<R>, crossinline transform: (T) -> R): BufferND<R>

Transform structure to a new structure using provided BufferFactory and optimizing if argument is BufferND


inline fun <T, R : Any> StructureND<T>.mapToBuffer(crossinline transform: (T) -> R): BufferND<R>

Transform structure to a new structure using inferred BufferFactory