impc:ti:gather-all-gvars-helper   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmti.xtm

Implementation

(define impc:ti:gather-all-gvars-helper
  (lambda (gtype)
    (foldl (lambda (lst val)
             (if (list? val)
                 (append (impc:ti:gather-all-gvars-helper val) lst)
                 (if (and (symbol? val)
                          (regex:match? (symbol->string val) "^!"))
                     (cons val lst)
                     lst)))
           '() gtype)))


Back to Index