Skip to content

Instantly share code, notes, and snippets.

@Grab('io.projectreactor:reactor-core:3.0.7.RELEASE')
@Grab('io.projectreactor:reactor-groovy:2.0.8.RELEASE')
import reactor.core.*
import reactor.core.spec.*
import reactor.event.*
import reactor.event.selector.*
import reactor.function.*
import reactor.function.support.*
import reactor.tuple.*
import java.util.*;
public class ComputeIfAbsent {
public static void main(String[] args) {
Map map = new LinkedHashMap();
map.computeIfAbsent(42, ArrayList::new);
}
}

Keybase proof

I hereby claim:

  • I am wwarlock on github.
  • I am wwarlock (https://keybase.io/wwarlock) on keybase.
  • I have a public key whose fingerprint is 82E5 F249 B475 35FC 0A55 26C6 7624 8DB4 7587 75CB

To claim this, I am signing this object: