Skip to content

Instantly share code, notes, and snippets.

@LiewJunTung
Last active January 28, 2018 01:54
Show Gist options
  • Save LiewJunTung/de891ad560d42aa789072ce9655eb4de to your computer and use it in GitHub Desktop.
Save LiewJunTung/de891ad560d42aa789072ce9655eb4de to your computer and use it in GitHub Desktop.
calculator =
interface +c {
# create() is to create an instance of the calculator
static create(): calculator;
# summation, adding two i32.. aka integers together. And return an integer.
summation(number1: i32, number2: i32):i32;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment