mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-15 11:18:43 +00:00
External/public, better options
This commit is contained in:
parent
5a883d8fa9
commit
1a849e7a56
12 changed files with 294 additions and 93 deletions
|
|
@ -1,3 +1,5 @@
|
|||
external fun printf ();
|
||||
|
||||
fun insert (tree, value) {
|
||||
case tree of
|
||||
Empty -> return Node (value, Empty, Empty)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
external fun printf ();
|
||||
|
||||
fun collect_ints_acc (v, tail) {
|
||||
local i;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
external fun printf ();
|
||||
|
||||
local lists = [
|
||||
{},
|
||||
{1, 2, 3, 4},
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
external fun printf ();
|
||||
|
||||
fun hd (l) {
|
||||
case l of
|
||||
h : _ -> return h
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue