aboutsummaryrefslogtreecommitdiff
path: root/test2.lux
diff options
context:
space:
mode:
Diffstat (limited to 'test2.lux')
-rw-r--r--test2.lux13
1 files changed, 10 insertions, 3 deletions
diff --git a/test2.lux b/test2.lux
index f7ecea4bf..dbb6c5b85 100644
--- a/test2.lux
+++ b/test2.lux
@@ -135,9 +135,12 @@
## #when true]
## (meme yolo foo))
-#( (def (+ x y)
- (jvm/i+ x y))
+(def (+ x y)
+ (do ## (:: (:: System out) (println "x = ")) (:: (:: System out) (println x))
+ ## (:: (:: System out) (println "y = ")) (:: (:: System out) (println y))
+ (jvm/i+ x y)))
+#(
(def inc (+ 1))
(def (fold f init values)
@@ -180,7 +183,11 @@
(def (main args)
(case (' ((~ "Oh yeah...")))
(#Form (#Cons (#Text text) #Nil))
- (:: (:: System out) (println text))
+ (do (:: (:: System out) (println text))
+ (:: (:: System out) (println (+ 10 20)))
+ (:: (:: System out) (println (jvm/i- 10 20)))
+ (:: (:: System out) (println (jvm/i* 10 20)))
+ (:: (:: System out) (println (jvm/i/ 10 2))))
))
#(