JDK 12's String::transform vs F#'s |> operator

Brian Goetz brian.goetz at oracle.com
Tue Mar 12 15:12:29 UTC 2019

On 3/8/2019 3:47 PM, Lukas Eder wrote:
> Hello,
> I've recently learned about JDK 12's new String::transform method:
> https://bugs.openjdk.java.net/browse/JDK-8203703
> Obviously, this is useful. And obviously, this would be far more useful as
> a general pattern than just something for String. E.g. why not also for any
> Number subtype. For Boolean. For java.time types. Etc.

Yes, that's the plan -- to add this method more widely.

Yes, we could go bigger, and add the |> operator, but that's not in the 
current plan.

More information about the core-libs-dev mailing list