summaryrefslogtreecommitdiff
path: root/symbol.lisp
diff options
context:
space:
mode:
authorJuan Manuel Tomás <jtomas1815@gmail.com>2025-06-23 02:23:36 -0300
committerJuan Manuel Tomás <jtomas1815@gmail.com>2025-06-23 02:23:36 -0300
commit97f8b6d2a990fe2e93704460fcdf08701616d7e4 (patch)
treedec4638301655b0f6a7dea9ed8765a02f1eb94e2 /symbol.lisp
parentbb4b2bc484ed1d827d707a5a50b234d6994af90c (diff)
downloadutils-97f8b6d2a990fe2e93704460fcdf08701616d7e4.tar.gz
utils-97f8b6d2a990fe2e93704460fcdf08701616d7e4.zip
Update utilsHEADmain
Diffstat (limited to 'symbol.lisp')
-rw-r--r--symbol.lisp9
1 files changed, 9 insertions, 0 deletions
diff --git a/symbol.lisp b/symbol.lisp
new file mode 100644
index 0000000..3585976
--- /dev/null
+++ b/symbol.lisp
@@ -0,0 +1,9 @@
+(in-package #:symbol)
+
+(defun normalize (sym expression)
+ (nsubst-if sym
+ (lambda (x)
+ (and (symbolp x)
+ (string-equal (symbol-name x)
+ (symbol-name sym))))
+ expression))