Guest User

Untitled

a guest
Sep 26th, 2011
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (import '(org.jfree.data.xy XYSeries))
  2.  
  3. (defn to-xy-series [name xy-coll]
  4.   (let [xyseries (XYSeries. name)]
  5.     (loop [[x y] (first xy-coll) others (rest xy-coll)]
  6.       (if (nil? x)
  7.         xyseries
  8.         (do  (.add xyseries x y)
  9.              (recur (first others) (rest others)))))))
  10.  
Advertisement
Add Comment
Please, Sign In to add comment