nathanmarz/cascalog — pull request #66 by zev (2012-04-06 09:16:37+00:00)
Title: Rough patch for TextDelimited support so I can skip-headers in files

Rough implemention for TextDelimited Scheme support.
Not sure why I needed the 4 args versions, but was receiving calls to it.

Usage:

(defn name-age-data [dir]
(let [source (lfs-textdelimited dir :delimiter "," :skip-header true)]
(<- [?name ?age]
(source ?name ?age))))

(?<- (stdout)
[?name ?age]
((name-age-data "/tmp/name_age.csv") ?name ?age)
(< ?age 25))