From 9e39423ab1eec0486e752bfdd06e34a64b6cfdd8 Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 11 Jan 2015 03:06:34 -0400 Subject: - Added substraction, multiplication and division for ints. --- test2.lux | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'test2.lux') 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)))) )) #( -- cgit v1.2.3