Skip to content

ex1 1

← Back

Basic Info

Functional Programming
└── Lab ML
    └── 0​328
        └── ex1 1.sml

Preview

(*Write a function that prints a list of integers*)

fun printList(nil) = ()
| printList(x::xs) = (
    print(Int.toString(x));
    print("\n");
    printList(xs)
);