mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Uncommented interpretation tests
This commit is contained in:
parent
74e007c2ec
commit
d1b1e04a40
5 changed files with 10 additions and 7 deletions
|
|
@ -1,3 +1,5 @@
|
|||
var n;
|
||||
|
||||
fun sum (l) {
|
||||
case l of
|
||||
{} -> 0
|
||||
|
|
@ -21,6 +23,7 @@ fun array_to_list (a) {
|
|||
l
|
||||
}
|
||||
|
||||
n := read ();
|
||||
write (sum ({}));
|
||||
write (sum ({1, 2, 3, 4, 5}));
|
||||
write (sum (1:2:3:4:5:{}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue