摘要:
collect will apply a partial function to all elements of a Traversable and return a different collection 阅读全文
摘要:
The Scala collections library provides specialised implementations for Sets of fewer than 5 values (see the source). The iterators for these implement 阅读全文
摘要:
If two Iterables aren't the same size, then zipAll can provide fillers for what it couldn't find a complement for. e.g. Iterable(x1, x2, x3) zipAll (I 阅读全文