Created
February 12, 2018 01:43
-
-
Save jackmott/1d1502bb7365e67af28b3503b1f0e4da to your computer and use it in GitHub Desktop.
if expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x := | |
if foo { | |
do_stuff() // returns an int | |
} else if bar { | |
a := do_stuff() | |
print("stuff" | |
3*a | |
} else { | |
5 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment