Skip to content

Instantly share code, notes, and snippets.

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