check-for-literal-match   scheme


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

Implementation

(define check-for-literal-match
  (lambda (expr ems)
    (if (null? ems)
        expr
        (let* ((em (car ems))
               (res (map (lambda (e) 
                           (not (literal-match? e em)))
                         expr))
               (num-of-non-literal (length (get-true-matches res))))
          (list-head expr num-of-non-literal)))))


Back to Index