garden/content/daily/2025-01-06.md
SouthFox 7437a31b89
All checks were successful
/ deploy (push) Successful in 54s
[post] new post
2025-01-06 23:46:22 +08:00

622 B

+++ title = 2025-01-06 author = ["SouthFox"] date = 2025-01-06T23:33:00+08:00 lastmod = 2025-01-06T23:45:53+08:00 tags = ["publish"] draft = false +++

Hy

API reference — Hy 1.0.0 manual

[hy]({{< relref "../main/20250106234212-hy.md" >}}) 里 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))))