In this directory some examples are provided in order to illustrate the language expressiveness.
The first example illustrate a todo list and its presentation using simple HTML list and basic reentrant click callback.
This example requires the thicket-lang.js
built calling the command:
$ grunt package
This second example illustrate an extension of the ecosystem providing a embedded code evaluation. This is done using two differents thicket engines. One for the application itself and one for the evaluation called each time the execute button is clicked.
This example illustrates a simple lambda calcul interpreter.
$ ./bin/thicket -i site/
Thicket v0.1
> import Examples.Lambda ;;
> for term <- {decode "(x -> x) 123"}
value <- {interpreter term eval newHashmap}
yield console.log $ valuePrettyPrinter value toString
;;
123
try[consoleClass] :: <class try>
>
Some functions like tail recursive factorial or fast fibonacci based on memoization are provided.
Peanos' number representation and interpretation.