From f8f9166be2c5d02edc17b3fb1d4ea6baa9f926da Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Thu, 7 Jun 2018 13:04:43 -0300 Subject: Update --- base/src/main/java/bjc/utils/funcdata/IList.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'base/src/main/java/bjc/utils/funcdata/IList.java') diff --git a/base/src/main/java/bjc/utils/funcdata/IList.java b/base/src/main/java/bjc/utils/funcdata/IList.java index cfda68d..12eaf2f 100644 --- a/base/src/main/java/bjc/utils/funcdata/IList.java +++ b/base/src/main/java/bjc/utils/funcdata/IList.java @@ -159,6 +159,16 @@ public interface IList extends Iterable { */ ContainedType first(); + /** + * Get the last element in the list. + * + * @return The last element in this list. + */ + ContainedType last(); + + ContainedType popFirst(); + ContainedType popLast(); + /** * Apply a function to each member of the list, then flatten the * results. -- cgit v1.2.3