Re: Running a certain function of your project

2016-07-14 Thread Thomas Mulvaney
For one-off scripts I typically have a `scripts/` directory in my projects. I also have a scripts profile in my project.clj which includes "src/clj" and "scripts", that way my scripts can call functions from my project. I then have a bash script called `bin/script` which just contains "lein run

Re: Removing duplicates from a series

2016-05-17 Thread Thomas Mulvaney
Rather than writing a new function you could always use something like (map first (partition-by :value events)). partition-by will create lists of events where consecutive values have not changed. You could also assemble a transducer pipeline using the transducer arities of the functions: `(into