impc:ti:remove-single-element-lists   scheme


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

Implementation

(define impc:ti:remove-single-element-lists
  (lambda (l)
    (map (lambda (k)
           ;; (println 'k k)
           (if (list? k)
               (if (= (length k) 1)
                   (car k)
                   (impc:ti:remove-single-element-lists k))
               k))
         l)))


Back to Index