ConsulListExtensions<E> extension
Methods
-
drop(int count)
→ List<E>
-
Drop first
count
items from this
list, returning the remainder as a new list.
-
dropLast(int count)
→ List<E>
-
Drop last
count
items from this
list, returning the remainder as a new list.
-
firstWhereOrNull(bool predicate(E))
→ E?
-
Find first item in this list fulfilling
predicate
. Will not evaluate on the remaining
items after the first match is found.
-
lastWhereOrNull(bool predicate(E))
→ E?
-
Find last item in this list fulfilling
predicate
. Will not evaluate on the remaining
items before the found match.
-
mapNotNull<R>(R? predicate(E))
→ List<R>
-
Returns a list of all non-null items returned by applying
predicate
on the items of this
list.
-
take_(int count)
→ List<E>
-
Take
count
items from the front of this list, returning the result as a list.
-
takeLast(int count)
→ List<E>
-
Take
count
items from the end of this list, returning the result as a list.