Skip to content

Instantly share code, notes, and snippets.

@46bit
Created February 4, 2018 23:40
Show Gist options
  • Select an option

  • Save 46bit/caaacacdda39473284bb0aed150e73be to your computer and use it in GitHub Desktop.

Select an option

Save 46bit/caaacacdda39473284bb0aed150e73be to your computer and use it in GitHub Desktop.
inputs i;
j = 9 + 1;
a(x) = match x {
0 => 0,
1..2 => 1,
3..4 => 2,
5..6 | 9 => 3,
_ => 4
};
k = 7 / 2 * a(3);
outputs j, k;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment