1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-21 14:02:02 +02:00

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

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