From dba0a8fbdb3671474c8cfaefc8bd39735cc0d5a6 Mon Sep 17 00:00:00 2001 From: Caleb Figgers Date: Sat, 2 Nov 2024 21:24:55 -0500 Subject: [PATCH] Tweaks to syntax sample --- test/syntax-sample.hy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/syntax-sample.hy b/test/syntax-sample.hy index 439307a..3a5dd5f 100644 --- a/test/syntax-sample.hy +++ b/test/syntax-sample.hy @@ -5,7 +5,7 @@ (defmacro hello [person] `(print "Hello there," ~person)) -(+ "hello " "world") ; = > "hello world" +(+ "hello " "world") ; => "hello world" (setv mylist [1 2 3 4]) (setv π 3.13159) @@ -13,5 +13,5 @@ (defmacro example [#* args] (str (+ #* args))) -(setv dict {:a 1 :b 2 :c 3}) -(get dict :a) +(setv a-dict {:a 1 :b 2 :c 3}) +(get a-dict :a) ; => 1