Arbor
Arbor copied to clipboard
Implement predicate syntax
This statement should look like:
(a, b) ->
: a > b ->
return doSomething();
: a < b ->
return doSomethingElse();
: true ->
return doTheLastThing();
done;
done;
This is the same as
(a, b) ->
if(a > b) ->
return doSomething();
else if (a < b) ->
return doSomethingElse();
else ->
return doTheLastThing();
done;
done;