Scala: when you wish that Seq was a List
As a long-time Java dev, it is tempting to declare function parameters as Lists. This is appropriate if we require an ordered sequence, but usually we only care that we can iterate over it. Our functions are more general if they accept any Seq. [1] However, now and then I really miss the cons operator … Read moreScala: when you wish that Seq was a List