Tuple0 extension

Extension methods on Record with 0 positional elements.

on
  • ()

Properties

iterable Iterable

Available on (), provided by the Tuple0 extension

An (untyped) Iterable over the values of this tuple.
no setter
length int

Available on (), provided by the Tuple0 extension

Returns the number of elements in the tuple.
no setter

Methods

addFirst<T>(T value) → (T)

Available on (), provided by the Tuple0 extension

Returns a new tuple with value added at the first position.
addLast<T>(T value) → (T)

Available on (), provided by the Tuple0 extension

Returns a new tuple with value added at the last position.
map<R>(R callback()) → R

Available on (), provided by the Tuple0 extension

Applies the values of this tuple to an 0-ary function.
toList() List

Available on (), provided by the Tuple0 extension

An (untyped) List with the values of this tuple.
toSet() Set

Available on (), provided by the Tuple0 extension

An (untyped) Set with the unique values of this tuple.

Static Methods

fromList<T>(List<T> list) → ()

Available on (), provided by the Tuple0 extension

List constructor.