mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update hy.html.markdown for 0.28.0 (#4867)
for looping seems to have updated in this version
This commit is contained in:
parent
4fafc29666
commit
d72ab67435
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user