Skip to content

Instantly share code, notes, and snippets.

@juliofalbo
Created November 4, 2019 20:47
Show Gist options
  • Save juliofalbo/c4cc77d1454c3986c3016fcb12d377b0 to your computer and use it in GitHub Desktop.
Save juliofalbo/c4cc77d1454c3986c3016fcb12d377b0 to your computer and use it in GitHub Desktop.
andThenFuntion
default <V> Function<T, V> andThen(Function<? super R, ? extends V> after) {
Objects.requireNonNull(after);
return (T t) -> after.apply(apply(t));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment