Skip to content

Commit

Permalink
Tweaks to syntax sample
Browse files Browse the repository at this point in the history
  • Loading branch information
CFiggers committed Nov 3, 2024
1 parent d25ef0f commit dba0a8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/syntax-sample.hy
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
(defmacro hello [person]
`(print "Hello there," ~person))

(+ "hello " "world") ; = > "hello world"
(+ "hello " "world") ; => "hello world"

(setv mylist [1 2 3 4])
(setv π 3.13159)

(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

0 comments on commit dba0a8f

Please sign in to comment.