72cd66a36853

Merge.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 22 Dec 2019 13:21:30 -0500
parents 93ba483d9bc9 (diff) dbd7237ece35 (current diff)
children 892a16d8007e
branches/tags (none)
files src/utils.lisp

Changes

--- a/src/utils.lisp	Fri Dec 20 17:12:29 2019 -0500
+++ b/src/utils.lisp	Sun Dec 22 13:21:30 2019 -0500
@@ -34,6 +34,11 @@
     (stream (alexandria:read-stream-content-into-string input))
     (string (copy-seq input))))
 
+(defun ensure-list (value)
+  (if (listp value)
+    value
+    (list value)))
+
 
 (defun hamming (sequence1 sequence2 &key (test #'eql))
   "Return the Hamming distance between `sequence1` and `sequence2`."
@@ -111,11 +116,6 @@
     result))
 
 
-(defun ensure-list (value)
-  (if (listp value)
-    value
-    (list value)))
-
 
 ;;;; Math ---------------------------------------------------------------------
 (defmacro do-sum ((var from to) &body body)