External/public, better options

This commit is contained in:
Dmitry Boulytchev 2019-11-24 02:30:32 +03:00
parent 5a883d8fa9
commit 1a849e7a56
12 changed files with 294 additions and 93 deletions

View file

@ -1,3 +1,5 @@
external fun printf ();
fun insert (tree, value) {
case tree of
Empty -> return Node (value, Empty, Empty)

View file

@ -1,3 +1,5 @@
external fun printf ();
fun collect_ints_acc (v, tail) {
local i;

View file

@ -1,3 +1,5 @@
external fun printf ();
local lists = [
{},
{1, 2, 3, 4},

View file

@ -1,3 +1,5 @@
external fun printf ();
fun hd (l) {
case l of
h : _ -> return h