list.cpp 169 B

1234567891011121314
  1. // Create a list from n things on the stack.
  2. #include "stdafx.h"
  3. #include "defs.h"
  4. void
  5. list(int n)
  6. {
  7. int i;
  8. push(symbol(NIL));
  9. for (i = 0; i < n; i++)
  10. cons();
  11. }