VincentToups / shadchen

shadchen is a common lisp pattern matching library.
GNU Lesser General Public License v3.0
22 stars 0 forks source link

Slight error in Readme.md #1

Open kreely opened 11 years ago

kreely commented 11 years ago

Hi,

I think in the following (in the example part of readme.md)

(defun not-nil (x) x)

(match (list 1) ((cons hd (or (? #'non-nil tl) (let (tl '(2 3))))) (list hd tl)))

You either meant to call not-nil in the match or (to be consistent with your other examples) make it (defun non-nil....).

Regards David

VincentToups commented 11 years ago

Correct! Should now be fixed in both versions of the library. I should spend a bit of time with documentation.