ListExpression<E> extension

Expressions on lists.

on

Methods

at(Expression<num> index) → Expression<E>

Available on Expression<List<E>>, provided by the ListExpression extension

The item at index (spec: at).
contains(Expression<E> item) → Expression<bool>

Available on Expression<List<E>>, provided by the ListExpression extension

Whether this contains item (spec: in).
indexOf(Expression<E> item, {Expression<num>? from}) → Expression<num>

Available on Expression<List<E>>, provided by the ListExpression extension

The position of the first item at or after from, or -1 (spec: index-of).
join(Expression<String> separator) → Expression<String>

Available on Expression<List<E>>, provided by the ListExpression extension

The items joined by separator (spec: join).
length() → Expression<num>

Available on Expression<List<E>>, provided by the ListExpression extension

The number of items (spec: length).
slice(Expression<num> start, [Expression<num>? end]) → Expression<List<E>>

Available on Expression<List<E>>, provided by the ListExpression extension

The items from start, up to end if given (spec: slice).