AbstractPrintableVariable

A variable stub, with a default toString method.

Parameters

<V>

value type of the variable

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
abstract fun getDefault(): V
Link copied to clipboard
open fun iterator(): Iterator<V>
abstract fun iterator(): Iterator<T>
Link copied to clipboard
fun <R> Iterable<R>.randomElement(randomGenerator: RandomGenerator): R

Returns a random element of the Iterable using the provided randomGenerator.

Link copied to clipboard
fun <R> Iterable<R>.shuffled(randomGenerator: RandomGenerator): Iterable<R>

Fisher–Yates shuffle algorithm using a RandomGenerator. More information on Wikipedia.

Link copied to clipboard
Link copied to clipboard
open fun steps(): Long
Link copied to clipboard
abstract fun stream(): Stream<V>
Link copied to clipboard
open fun toString(): String