Month: March 2022
-
Why I love Clojure
Here’s some code I’m writing for my day-job. I have an iterator of IScoreObjects (basically things that live on a musical score or timeline). I want an iterator of only the Notes. Where Notes are one of the things that implement the IScoreObject interface and can live on the score. Here’s my code. import java.util.Iterator;…