diff options
author | William Carroll <wpcarro@gmail.com> | 2020-09-01T12·44+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-09-01T13·00+0100 |
commit | 718899c629bb1b8bd05285c2e8c5a1709e8e5226 (patch) | |
tree | bd360e7b7779e8d8f05df3eb1059887ede6ed8c7 /emacs/.emacs.d/wpc/number.el | |
parent | 3b2fffe954e3927673e403ee124a78f78bb1c45c (diff) |
More Elisp linting
In order for this to scale, I need to solve two things: 1. Ad-hoc ignore fill-column rules for URLs and other exceptions. 2. Run Elisp flychecker without evaluating my Elisp code and firing its side-effects.
Diffstat (limited to 'emacs/.emacs.d/wpc/number.el')
-rw-r--r-- | emacs/.emacs.d/wpc/number.el | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/emacs/.emacs.d/wpc/number.el b/emacs/.emacs.d/wpc/number.el index 9d576797f1c9..c8ed665b3098 100644 --- a/emacs/.emacs.d/wpc/number.el +++ b/emacs/.emacs.d/wpc/number.el @@ -108,21 +108,6 @@ While this function is undeniably trivial, I have unintentionally done (- 1 x) "Add one to `X'." (+ x 1)) -;; TODO: Does this belong in a math module? Is math too vague? Or is number -;; too vague? -;; TODO: Resolve the circular dependency that this introduces with series.el, -;; and then re-enable this function and its tests below. -;; (defun number-factorial (x) -;; "Return factorial of `X'." -;; (cond -;; ((number-negative? x) (error "Will not take factorial of negative numbers")) -;; ((= 0 x) 1) -;; ;; NOTE: Using `series/range' introduces a circular dependency because: -;; ;; series -> number -> series. Conceptually, however, this should be -;; ;; perfectly acceptable. -;; (t (->> (series/range 1 x) -;; (list-reduce 1 #'*))))) - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Tests ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |