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!
This commit is contained in:
parent
56692b3833
commit
274219cc63
1 changed files with 4 additions and 4 deletions
|
@ -28,13 +28,13 @@
|
||||||
(cl-defun math/triangle-of-power (&key base power result)
|
(cl-defun math/triangle-of-power (&key base power result)
|
||||||
;; TODO: Assert two of three are set.
|
;; TODO: Assert two of three are set.
|
||||||
(cond
|
(cond
|
||||||
((maybe/some? base power result)
|
((maybe/somes? base power result)
|
||||||
(error "All three arguments should not be set"))
|
(error "All three arguments should not be set"))
|
||||||
((maybe/some? power result)
|
((maybe/somes? power result)
|
||||||
(message "power and result"))
|
(message "power and result"))
|
||||||
((maybe/some? base result)
|
((maybe/somes? base result)
|
||||||
(log result base))
|
(log result base))
|
||||||
((maybe/some? base power)
|
((maybe/somes? base power)
|
||||||
(expt base power))
|
(expt base power))
|
||||||
(t
|
(t
|
||||||
(error "Two of the three arguments must be set"))))
|
(error "Two of the three arguments must be set"))))
|
||||||
|
|
Loading…
Reference in a new issue