mkey   scheme


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

Implementation

(define mkey
  (lambda (key match-result)
    (if (symbol? key) (set! key (symbol->string key)))
    (if (list? match-result)
        (let ((res (map cadr (filter (lambda (x) 
                                      (equal? (car x) key))
                                    match-result))))
          (flatten res))
        #f)))


Back to Index