p:assert-match   scheme


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

Implementation

;; @ignore
;; Like p:match, but fails with an error message if the pattern doesn't match.
(define (p:assert-match pattern datum)
  (or (p:match pattern datum)
      (error "Pattern matching failed.")))


Back to Index