mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Prototype of X86_64 migration
This commit is contained in:
parent
3fdc3e7f2a
commit
e77433e51c
21 changed files with 599 additions and 7165 deletions
|
|
@ -1,5 +1,3 @@
|
|||
var n;
|
||||
|
||||
fun sum (l) {
|
||||
case l of
|
||||
{} -> 0
|
||||
|
|
@ -23,9 +21,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:{}));
|
||||
print_list (array_to_list ([1, 2, 3, 4, 5]))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue