Demo entry 1968192

trident-filter

   

Submitted by anonymous on Jun 20, 2015 at 12:15
Language: Clojure. Code size: 326 Bytes.

(t/deffilter filter-type {:params  [divisor]
                          :prepare true}
             [conf context]
             (prn "preperation done here" divisor)
             (t/filter
                 (isKeep [tuple]
                         (= 0 (mod (t/first tuple)
                                   divisor)))))

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).