Artifact 933e8bfeb209e3d506d233b9bb1b7bd515f45933dec1899abe85bc339d12a65c:
- File
psl-1983/tests/mini-carcdr.red
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 429) [annotate] [blame] [check-ins using] [more...]
% MINI-CAR-CDR.RED % ---- Some Basic LIST support Functions Procedure Car x; if Pairp x then car x else <<Print "*** Cant take CAR of NON PAIR";NIL>>; Procedure Cdr x; if Pairp x then cdr x else <<Print "*** Cant take CDR of NON PAIR";NIL>>; % -- CxxR -- may need in EVAL if not open coded Procedure Caar x; Car Car x; Procedure Cadr x; Car Cdr x; Procedure Cdar x; Cdr Car x; Procedure Cddr x; Cdr Cdr x; end;