summaryrefslogtreecommitdiff
path: root/MLKRoot.m
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-07-08 15:48:56 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-07-08 15:48:56 +0200
commit947f0ecbdeb98e4b5f53c68cb62e7d9cfcf03c60 (patch)
tree9a2b277c808b93bbb7d90c68dd860645bb29b1b2 /MLKRoot.m
parent0654d8d1017b202c5aa250c77626c54bf571a354 (diff)
Replace SET-CAR and SET-CDR with RPLACA and RPLACD.
Diffstat (limited to 'MLKRoot.m')
-rw-r--r--MLKRoot.m14
1 files changed, 8 insertions, 6 deletions
diff --git a/MLKRoot.m b/MLKRoot.m
index 880b4e5..f6ee730 100644
--- a/MLKRoot.m
+++ b/MLKRoot.m
@@ -121,16 +121,18 @@ static id truify (BOOL value)
return [NSArray arrayWithObject:nullify([denullify([args objectAtIndex:0]) cdr])];
}
-+(NSArray *) set_car:(NSArray *)args
++(NSArray *) rplaca:(NSArray *)args
{
- [[args objectAtIndex:0] setCar:denullify([args objectAtIndex:1])];
- return [NSArray arrayWithObject:[args objectAtIndex:1]];
+ MLKCons *cons = [args objectAtIndex:0];
+ [cons setCar:denullify([args objectAtIndex:1])];
+ RETURN_VALUE (cons);
}
-+(NSArray *) set_cdr:(NSArray *)args
++(NSArray *) rplacd:(NSArray *)args
{
- [[args objectAtIndex:0] setCdr:denullify([args objectAtIndex:1])];
- return [NSArray arrayWithObject:[args objectAtIndex:1]];
+ MLKCons *cons = [args objectAtIndex:0];
+ [cons setCdr:denullify([args objectAtIndex:1])];
+ RETURN_VALUE (cons);
}
+(NSArray *) cons:(NSArray *)args