From bb4b2bc484ed1d827d707a5a50b234d6994af90c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Mon, 24 Jul 2023 00:09:53 -0300 Subject: Add char, color and name transformers --- char.lisp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 char.lisp (limited to 'char.lisp') diff --git a/char.lisp b/char.lisp new file mode 100644 index 0000000..8d1f21c --- /dev/null +++ b/char.lisp @@ -0,0 +1,7 @@ +(in-package #:char) + +(defun whitespace? (x) + (some (lambda (y) (char= x y)) '(#\Space #\Newline #\Tab))) + +(defun visible? (x) + (char/= x #\Space #\Newline #\Tab)) -- cgit v1.2.3