Re: Control Break in Report

2017-07-15 Thread hiskennyness
Two thoughts: 1. Use an atom. 2. Use loop instead of doseq, so you can maintain a bit of state as you go. -kt On Saturday, July 15, 2017 at 6:18:10 PM UTC-4, Kevin Kleinfelter wrote: > > How does one detect a change in a doseq? > > I'm trying to do what data processing people would call a con

Re: Control Break in Report

2017-07-15 Thread James Reeves
Partition the data. At its simplest: (doseq [accounts (partition-by first account-funds)] (doseq [account (first h), fund (second h)] (println account fund) (println "---" You can also use destructuring to do without the let clause: (doseq [accounts (partition-by