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
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