Destructurable

interface Destructurable<T : Value<*>>

Anything that can be destructured into a sequence of Value components.

A common usage is with an IterableValue, which can be destructured into its elements. For example, a PairValue is an IterableValue that can be destructured into its two components.

Destructuring in Quarkdown may occur, for example, in .foreach.

Parameters

T

type of the components

See also

Inheritors

Properties

Link copied to clipboard

Components that can be the result of a destructuring operation.

Functions

Link copied to clipboard
open fun destructured(componentCount: Int): List<T>

Destructures this object into a list of components.