Skip to content

Instantly share code, notes, and snippets.

@deepakmehra10
Created July 14, 2019 07:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deepakmehra10/0eded704c4b27bdc436ab592563ca1dc to your computer and use it in GitHub Desktop.
String conditional = Match(1).of(
Case($(is(1)),i -> "one" +i),
Case($(is(2)),i -> "two" + i),
Case($(),"default")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment