3ba047db7a50

Common Lisp is stable, I am not
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 18 Apr 2022 21:19:44 -0400
parents 2d0b4dae45a0
children 08283802d226
branches/tags (none)
files generate.lisp

Changes

--- a/generate.lisp	Fri Oct 01 13:40:51 2021 -0400
+++ b/generate.lisp	Mon Apr 18 21:19:44 2022 -0400
@@ -89,10 +89,10 @@
   (digit-char-p (char (plump:tag-name node) 1)))
 
 (defun subheaders (root)
-  (-<> root
+  (_ root
     (gathering
-      (plump:traverse <> #'gather :test #'subheaderp))
-    (mapcar (lambda (node) (cons (header-level node) node)) <>)))
+      (plump:traverse _ #'gather :test #'subheaderp))
+    (mapcar (lambda (node) (cons (header-level node) node)) _)))
 
 (defun split-if (pred list)
   "Split list into two pieces, at the point where pred first becomes true.
@@ -205,10 +205,10 @@
         metadata))))
 
 (defun walk (path)
-  (-<> (sh (list "find" path "-name" "*.markdown") :result-type 'list)
-    (mapcar #'read-content <>)
-    (remove nil <>)
-    (sort <> #'local-time:timestamp> :key #'date)))
+  (_ (sh (list "find" path "-name" "*.markdown") :result-type 'list)
+    (mapcar #'read-content _)
+    (remove nil _)
+    (sort _ #'local-time:timestamp> :key #'date)))
 
 (defun gallery-photos (gallery)
   (let* ((slug (gallery gallery))