summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-07-03 17:54:38 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-07-03 17:54:38 +0200
commitd2177ce363fd5b0d8d3faf6d25f2944e43236e11 (patch)
tree4867627e708314bf1120a9b4bc809c67e4a01120
parent88ce45f2cd65cf619ead6a07e69d7c8be55cebec (diff)
Implement LIST.
-rw-r--r--MLKPackage.m1
-rw-r--r--MLKRoot.m5
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];
}
diff --git a/MLKRoot.m b/MLKRoot.m
index 5c8b4b8..c30a043 100644
--- a/MLKRoot.m
+++ b/MLKRoot.m
@@ -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