Skip to content

Instantly share code, notes, and snippets.

@dimitris-papadimitriou-chr
Last active July 2, 2020 17:47
Show Gist options
  • Select an option

  • Save dimitris-papadimitriou-chr/6fc65d4732fc46cfa2e8b3a75048765d to your computer and use it in GitHub Desktop.

Select an option

Save dimitris-papadimitriou-chr/6fc65d4732fc46cfa2e8b3a75048765d to your computer and use it in GitHub Desktop.
class Balance {
static Left = new Balance(0, 1)
static Right = new Balance(1, 0)
static Empty = new Balance(0, 0)
L: number
R: number
constructor(l: number, r: number) {
this.L = l;
this.R = r;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment