Well the alternative is that GP solved the world hunger as people can just buy future food contracts to protect themselves from drought.
6 karma · joined November 20, 2025
As in, you don't want a law to make it illegal in general, you only want to ban immigrants from being data brokers?
var input = "Some kind of string.";
var output = Optional.of(input)
.map(i -> i.trim())
.map(i -> i.replace(' ', '-'))
.map(i -> i.replaceAll("[./…]", ""))
.map(i -> i.toLowerCase())
.get();
That is until you realize there is no reason to go weird with arrow operators when String is an object: var input = "Some kind of string.";
var output = input.trim()
.replace(' ', '-')
.replaceAll("[./…]", "")
.toLowerCase();
It looks like they solved the wrong issue but that is probably just side effect of using trivial examples.