git.fiddlerwoaroof.com
Browse code

refactor: add op base class

Edward authored on 25/02/2021 11:23:48
Showing 1 changed files
... ...
@@ -15,6 +15,8 @@
15 15
   ((%string :initarg :string :accessor string-to-edit)
16 16
    (%transform :accessor transform :initform 'identity)))
17 17
 
18
+(defclass op ()
19
+  ((%epoch :reader epoch :initform (let ((c (load-time-value (vector 0)))) (incf (elt c 0))))))
18 20
 
19 21
 (defmethod apply-edits ((base string) (operations sequence))
20 22
   (string-to-edit