2005-05-01 11:48:36 +00:00
|
|
|
#ifndef __Cons_h
|
|
|
|
#define __Cons_h
|
|
|
|
#include "SchemeObject.h"
|
|
|
|
|
|
|
|
@interface Cons: SchemeObject
|
|
|
|
{
|
|
|
|
SchemeObject car, cdr;
|
|
|
|
}
|
|
|
|
+ (id) newWithCar: (SchemeObject) a cdr: (SchemeObject) d;
|
|
|
|
- (id) initWithCar: (SchemeObject) a cdr: (SchemeObject) d;
|
|
|
|
- (SchemeObject) car;
|
|
|
|
- (void) car: (SchemeObject) a;
|
|
|
|
- (SchemeObject) cdr;
|
|
|
|
- (void) cdr: (SchemeObject) d;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@extern Cons cons (SchemeObject car, SchemeObject cdr);
|
2005-05-08 06:38:01 +00:00
|
|
|
@extern BOOL isList (SchemeObject ls);
|
2005-05-08 10:37:57 +00:00
|
|
|
@extern integer length (SchemeObject foo);
|
2005-05-01 11:48:36 +00:00
|
|
|
|
|
|
|
#endif //__Cons_h
|