Slice$SliceConcreteExtension<T extends Object> extension
Methods only implemented when T
is a concrete type (non-nullable).
Why: Correctness of code and reduces bugs.
e.g. if nth
returns null on a nullable iterable, the nth element is
either null or the iterable does not have n elements. While if it returns Option, if the element
is null it returns Some(null)
and if it does not have n elements it returns None
- on
-
- Slice<
T>
- Slice<
Methods
-
takeFirst(
) → T? -
Available on Slice<
T> , provided by the Slice$SliceConcreteExtension extension -
takeLast(
) → T? -
Available on Slice<
T> , provided by the Slice$SliceConcreteExtension extension