Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Latest commit

 

History

History
24 lines (19 loc) · 453 Bytes

note.md

File metadata and controls

24 lines (19 loc) · 453 Bytes

So

for the following examples

(pat-match '(x = (?is ?n numberp)) '(x = 34)) 
(pat-match '(x = (?and (?is ?n numberp) (?is ?n oddp))) '(x = 34))
(lestrade:wtf 'numberp)
;; =>
;; Symbol: NUMBERP
;; Package: CL
;; NUMBERP :EXTERNAL

should be somehow so

(fset 'is-number (lambda (x) (numberp x)))
(pat-match '(x = (?is ?n is-numberp)) '(x = 34)) 
(pat-match '(x = (?and (?is ?n is-numberp) (?is ?n oddp))) '(x = 34))