LazyStructureND

class LazyStructureND<out T>(val scope: CoroutineScope, val shape: ShapeND, val function: suspend (IntArray) -> T) : StructureND<T> (source)

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, shape: ShapeND, function: suspend (IntArray) -> T)

Functions

Link copied to clipboard
fun async(index: IntArray): Deferred<T>
Link copied to clipboard
Link copied to clipboard
suspend fun await(index: IntArray): T
Link copied to clipboard
suspend fun <T> StructureND<T>.await(index: IntArray): T
Link copied to clipboard
open override fun elements(): Sequence<Pair<IntArray, T>>
Link copied to clipboard
open operator override fun get(index: IntArray): T
Link copied to clipboard
open override fun <F : StructureFeature> getFeature(type: KClass<out F>): F?
Link copied to clipboard
inline fun <T, R> StructureND<T>.mapAsync(scope: CoroutineScope, crossinline function: suspend (T) -> R): LazyStructureND<R>
Link copied to clipboard
inline fun <T, R> StructureND<T>.mapAsyncIndexed(scope: CoroutineScope, crossinline function: suspend (T, index: IntArray) -> R): LazyStructureND<R>

PENDING would benefit from KEEP-176

Properties

Link copied to clipboard
open val dimension: Int
Link copied to clipboard
val function: suspend (IntArray) -> T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val shape: ShapeND