take-nth

2009-10-27 Thread alxtoth
Hi, Started tinkering with Clojure, and wonderring why (take-nth 0 (range 10)) returns an infinite sequence .. Is this really the expected behaviour? ; ;code bellow is public domain ; (defn take-nth-proposal "Returns a lazy seq of every nth item in coll . Or nil if n less than 1." [n coll]

Re: Periodic tasks

2009-10-31 Thread alxtoth
Hi Why not use the OS task scheduler? On un*x there is good old cron or at. On windoze there is similar task scheduler. If you think a little that's what it takes: simple reliable and if it fails with whatever error will start again in 2 minutes. Just don't forget to write to log files , and ro