learning scala list.collect

collect will apply a partial function to all elements of a Traversable and return a different collection

原文地址:https://www.cnblogs.com/lianghong881018/p/11352099.html