Tuple0 extension

Extension methods on Record with 0 positional elements.

on
  • ()

Properties

iterable Iterable
An (untyped) Iterable over the values of this tuple.
no setter
length int
Returns the number of elements in the tuple.
no setter

Methods

addFirst<T>(T value) → (T)
Returns a new tuple with value added at the first position.
addLast<T>(T value) → (T)
Returns a new tuple with value added at the last position.
map<R>(R callback()) → R
Applies the values of this tuple to an 0-ary function.
toList() List
An (untyped) List with the values of this tuple.
toSet() Set
An (untyped) Set with the unique values of this tuple.

Static Methods

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