Companion code for https://bit.ly/2WCoR0f
The easiest way is to use parcel
parcel index.html
Then you can use _eval
in the developper console. Example
_eval("let inc = fn(x: int) => x + 1 in inc(100)");
I'll be adding occasionnally examples for supporting more features. The examples will be in separate branches.