diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-03 17:54:38 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-03 17:54:38 +0200 |
commit | d2177ce363fd5b0d8d3faf6d25f2944e43236e11 (patch) | |
tree | 4867627e708314bf1120a9b4bc809c67e4a01120 | |
parent | 88ce45f2cd65cf619ead6a07e69d7c8be55cebec (diff) |
Implement LIST.
-rw-r--r-- | MLKPackage.m | 1 | ||||
-rw-r--r-- | MLKRoot.m | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/MLKPackage.m b/MLKPackage.m index 205dea1..4673f0e 100644 --- a/MLKPackage.m +++ b/MLKPackage.m @@ -98,6 +98,7 @@ static NSMutableDictionary *packages = nil; [sys export:[sys intern:@"SUBTRACT"]]; [sys export:[sys intern:@"MULTIPLY"]]; [sys export:[sys intern:@"DIVIDE"]]; + [sys export:[sys intern:@"LIST"]]; [tlUser usePackage:clUser]; } @@ -220,4 +220,9 @@ static id truify (BOOL value) { RETURN_VALUE ([[args objectAtIndex:0] divideBy:[args objectAtIndex:1]]); } + ++(NSArray *) list:(NSArray *)args +{ + RETURN_VALUE ([MLKCons listWithArray:args]); +} @end |