种植日期: 2025-01-06
上次照料: 2025-01-06
2025-01-06
Hy
API reference — Hy 1.0.0 manual
hy
里 for 里能引用之前的标识符,达到 python 里用多个 for 循环能表达同样的效果。
(for [[root dirs files] (os.walk "source")
-file files]
(let [file (os.path.join root -file)]
(when (and (in "posts" file) (file.endswith ".md"))
(markdown-files.append file))))
评论