Update hy.html.markdown for 0.28.0 (#4867)

for looping seems to have updated in this version
This commit is contained in:
inkling 2024-03-23 00:32:38 -04:00 committed by GitHub
parent 4fafc29666
commit d72ab67435
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,10 +174,10 @@ True ; => True
; create lexical bindings with `let', all variables defined thusly
; have local scope
(let [[nemesis {"superman" "lex luther"
(let [nemesis {"superman" "lex luther"
"sherlock" "moriarty"
"seinfeld" "newman"}]]
(for [(, h v) (.items nemesis)]
"seinfeld" "newman"}]
(for [[h v] (.items nemesis)]
(print (.format "{0}'s nemesis was {1}" h v))))
;; classes