mini-others-sl.red 199 B

12345678910111213
  1. % MINI-OTHERS-SL.RED
  2. on syslisp;
  3. procedure Length U;
  4. % Length of list U, fast version
  5. Length1(U, 0);
  6. procedure Length1(U, N);
  7. if PairP U then Length1(cdr U, N+1) else N;
  8. off syslisp;
  9. end;