mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-14 13:56:59 +03:00
15 lines
263 B
C
15 lines
263 B
C
#include "testHdr.h"
|
|
|
|
int main() {
|
|
|
|
VM* vm = idris_vm();
|
|
|
|
ListInt x = cons(vm, 10, cons(vm, 20, nil(vm)));
|
|
ListInt y = cons(vm, 30, cons(vm, 40, nil(vm)));
|
|
ListInt z = addLists(vm, x, y);
|
|
|
|
printf("%s\n", showList(vm, z));
|
|
|
|
close_vm(vm);
|
|
}
|