Skip to content

Instantly share code, notes, and snippets.

@luanpotter
Created March 29, 2021 00:14
Show Gist options
  • Save luanpotter/39fdb6503cd059f9f78bd4afdfb95446 to your computer and use it in GitHub Desktop.
Save luanpotter/39fdb6503cd059f9f78bd4afdfb95446 to your computer and use it in GitHub Desktop.
final int? a = maybeGetInt();
final int? result = a != null ? addTwo(a) : null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment