Inspired by my Clojure and Haskell studies, I've rewritten one of the Fiona example scripts in a somewhat more functional and less imperative style.
The code blocks within for loops have been replaced by functions than operate on sequences and generators. This makes the final code involving the input and output files super clean. It also opens the door for rewriting the record processing functions in C (or Cython)
for higher performance.
Comments are closed after 13 days.