PairValue

data class PairValue<F : OutputValue<*>, S : OutputValue<*>>(pairUnwrappedValue: Pair<F, S>) : IterableValue<OutputValue<*>>

An immutable Value that contains two elements, which can be iterated. When a DictionaryValue is iterated, it's equivalent to a list of key-value pairs.

Type Parameters

F

type of the first element

S

type of the second element

Constructors

Link copied to clipboard
constructor(pairUnwrappedValue: Pair<F, S>)

Properties

Link copied to clipboard

Components that can be the result of a destructuring operation.

Link copied to clipboard
open override val unwrappedValue: Iterable<OutputValue<*>>

A list of the two elements.

Functions

Link copied to clipboard
open override fun <T> accept(visitor: ExpressionVisitor<T>): T

Accepts a visitor.

open override fun <O> accept(visitor: OutputValueVisitor<O>): O
Link copied to clipboard

Chains two expressions together, which is used in ComposedExpressions.

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

Destructures this object into a list of components.

Link copied to clipboard
Link copied to clipboard
fun Value<*>.isNone(): Boolean

Whether this value represents a missing/null value, either as a direct NoneValue or as a value wrapping None, NoneValue, or null.

Link copied to clipboard
open operator override fun iterator(): Iterator<OutputValue<*>>