about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-12-22T21·05+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-12-24T15·21+0000
commit274219cc635e1a50de0c44ca0f83b191e1ceb0a6 (patch)
treeab70b6d609d436110b9bd99086297c1dd501b077 /configs
parent56692b38331d5845bf4010a2485482732a89be3e (diff)
Prefer somes? to some? in math.el
In a moment of strong opinions against variadic functions, I defined
maybe/somes? and redefined maybe/some? to be non-variadic. I'm not sure if I
feel as strongly about that change as I did when I made it. Either way, the
change remains and math.el is broken unless it consumes maybe/somes?, so... this
does that!
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/.emacs.d/wpc/math.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/configs/shared/.emacs.d/wpc/math.el b/configs/shared/.emacs.d/wpc/math.el
index 55ddc427c70b..3176d906b466 100644
--- a/configs/shared/.emacs.d/wpc/math.el
+++ b/configs/shared/.emacs.d/wpc/math.el
@@ -28,13 +28,13 @@
 (cl-defun math/triangle-of-power (&key base power result)
   ;; TODO: Assert two of three are set.
   (cond
-   ((maybe/some? base power result)
+   ((maybe/somes? base power result)
     (error "All three arguments should not be set"))
-   ((maybe/some? power result)
+   ((maybe/somes? power result)
     (message "power and result"))
-   ((maybe/some? base result)
+   ((maybe/somes? base result)
     (log result base))
-   ((maybe/some? base power)
+   ((maybe/somes? base power)
     (expt base power))
    (t
     (error "Two of the three arguments must be set"))))