摘要: collect will apply a partial function to all elements of a Traversable and return a different collection 阅读全文
posted @ 2019-08-14 15:14 嵌入式实操 阅读(371) 评论(0) 推荐(0) 编辑
摘要: The Scala collections library provides specialised implementations for Sets of fewer than 5 values (see the source). The iterators for these implement 阅读全文
posted @ 2019-08-14 14:58 嵌入式实操 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-08-14 14:43 嵌入式实操 阅读(518) 评论(0) 推荐(0) 编辑