pat6   scheme


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

Implementation

(define pat6 (match '(nums??number syms??symbol))) ;; match 1 or more numbers followed by 1 or more symbols
(println 'pat6a (pat6 '(1 2 3 a b c))) ;; success
(println 'pat6b (pat6 '(1 a b c))) ;; success
(println 'pat6c (pat6 '(a b c))) ;; fails - need at least one number


Back to Index