From 5883c0d11c21a74ba493ea369ff01d7baed80a41 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Mon, 15 Dec 2014 00:56:48 -0400 Subject: Added tuples. --- test2.lang | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test2.lang') diff --git a/test2.lang b/test2.lang index 58079e172..e52e667d7 100644 --- a/test2.lang +++ b/test2.lang @@ -16,6 +16,10 @@ (definterface Function (: apply (-> [java.lang.Object] java.lang.Object))) +(defclass Tuple0 []) +(defclass Tuple1 [[java.lang.Object _0]]) +(defclass Tuple2 [[java.lang.Object _0] [java.lang.Object _1]]) + (def const "IDENTITY") (def sample (#Tag "value")) @@ -25,5 +29,5 @@ (def (main args) (if true - (_. (_.. System out) (println (constant "TRUE" "YOLO"))) + (_. (_.. System out) (println ["TRUE" "YOLO"])) (_. (_.. System out) (println "FALSE")))) -- cgit v1.2.3