R: add step8_macros and step9_try.
[jackhill/mal.git] / tests / step7_quote.mal
index a8771bf..dae6cbd 100644 (file)
 ;;
 ;; -------- Optional Functionality --------
 
+;; Testing cons, concat, first, rest with vectors
+
+(cons [1] [2 3])
+;=>([1] 2 3)
+(cons 1 [2 3])
+;=>(1 2 3)
+(concat [1 2] (list 3 4) [5 6])
+;=>(1 2 3 4 5 6)
+
 ;; Testing unquote with vectors
 (def! a 8)
 ;=>8
 ;=>(1 1 "b" "d" 3)
 ;;; TODO: fix this
 ;;;;=>[1 1 "b" "d" 3]
+