jOOQ / jOOL

jOOλ - The Missing Parts in Java 8 jOOλ improves the JDK libraries in areas where the Expert Group's focus was elsewhere. It adds tuple support, function support, and a lot of additional functionality around sequential Streams. The JDK 8's main efforts (default methods, lambdas, and the Stream API) were focused around maintaining backwards compatibility and implementing a functional API for parallelism.
http://www.jooq.org/products
Apache License 2.0
2.09k stars 168 forks source link

Add Function[N].compose() and .andThen() methods #226

Closed lukaseder closed 4 years ago

lukaseder commented 8 years ago

These should work along the lines of the methods in java.util.function.Function

patrox commented 7 years ago

hi @lukaseder, could you please have a look at: https://github.com/jOOQ/jOOL/pull/270 and tell me if this approach is correct ?

lukaseder commented 7 years ago

@patrox: Thanks for your suggestion. Your implementation suggestion is along the lines of what I must've had in mind at the time. However, I currently don't see the point of this anymore. A Function[N] always returns a single value, so it can only ever be composed with Function1... I guess the feature request is not that useful...?

lukaseder commented 4 years ago

I'm closing this feature request for now, as I'm not convinced the functionality is useful.