JDK 12's String::transform vs F#'s |> operator
brian.goetz at oracle.com
Tue Mar 12 15:12:29 UTC 2019
On 3/8/2019 3:47 PM, Lukas Eder wrote:
> I've recently learned about JDK 12's new String::transform method:
> 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
More information about the core-libs-dev