public interface HeadTail
Lists.| Modifier and Type | Method and Description |
|---|---|
static <X> Optional<X> |
head(List<X> list)
Returns the first item in the list as an
Optional. |
static <X> List<X> |
tail(List<X> list)
Returns the list, minus the first item.
|
Copyright © 2020. All rights reserved.