Skip to content

Instantly share code, notes, and snippets.

@deathbeam
Created August 2, 2016 13:22
Show Gist options
  • Save deathbeam/8bee58859103effd1b24198d4f3c3c4c to your computer and use it in GitHub Desktop.
Save deathbeam/8bee58859103effd1b24198d4f3c3c4c to your computer and use it in GitHub Desktop.
Object a = "first";
Object b = "second";
a = ((BiFunction<Object, Object, Object>) (o, o2) -> o).apply(b, b = a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment