#include #include "list.h" int main() { list* x = nil(); //add the numbers 1 through 10000 to the list for (int i = 0; i < 100000000; i++) { x = cons(i,x); } //loop through the list, print out elements list* cur = x; while (!is_nil(cur)) { printf("Current is: %d\n", head(cur)); cur = tail(cur); } //free the list release(x); return 0; }