p:matcher   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/base/pattern.xtm

Implementation

;; @ignore
;; Creates a procedure which can be used to match against the given pattern.
(define (p:matcher pattern)
  (let* ((compiled (p:compile pattern))
         (proc (matcher:proc compiled)))
    (lambda (datum)
      (proc datum (match-result:make) identity))))


Back to Index

Similar Entries