git.fiddlerwoaroof.com
Browse code

feat(deps): remove dep on serapeum

Edward Langley authored on 30/03/2022 05:29:55
Showing 3 changed files
... ...
@@ -8,8 +8,7 @@
8 8
   :author "Edward Langley <el-cl@elangley.org>"
9 9
   :license "MIT"
10 10
   :depends-on (:cl-ppcre
11
-               :alexandria
12
-               :serapeum)
11
+               :alexandria)
13 12
   :serial t
14 13
   :components ((:file "package")
15 14
                (:file "optics")
... ...
@@ -151,7 +151,7 @@ contain the new value at the location focused by the lens."
151 151
       (fmap (lambda (new)
152 152
               (cons (cons key new)
153 153
                     alist))
154
-            (funcall cb (serapeum:assocdr key alist))))))
154
+            (funcall cb (cdr (assoc key alist)))))))
155 155
 
156 156
 (defun make-alist-lens (key)
157 157
   "A lens for updating a alist, discarding previous values"
... ...
@@ -162,7 +162,7 @@ contain the new value at the location focused by the lens."
162 162
                                        alist)
163 163
                                  :key #'car
164 164
                                  :from-end t))
165
-            (funcall cb (serapeum:assocdr key alist))))))
165
+            (funcall cb (cdr (assoc key alist)))))))
166 166
 
167 167
 (defun make-list-lens (index)
168 168
   "A lens for updating a sequence"
... ...
@@ -11,7 +11,6 @@
11 11
 
12 12
 (defpackage :data-lens
13 13
   (:use :cl)
14
-  (:import-from #:serapeum #:op #:defalias)
15 14
   (:export #:regex-match #:include #:exclude #:pick #:key-transform
16 15
            #:combine #:derive #:cumsum #:over #:on #:shortcut
17 16
            #:defun-ct #:key #:extract-key #:element #:let-fn #:juxt