In fact, Scala's Enumeration class supports the usual methods for working with collections, so we can easily iterate through the breeds with a for loop and filter them by name.
实际上,Scala的枚举类支持和集合协作需要的一般方法,所以我们可以简单地在循环中遍历这些种类,或者通过名字过滤它们。
In fact, Scala's Enumeration class supports the usual methods for working with collections, so we can easily iterate through the breeds with a for loop and filter them by name.
实际上,Scala的枚举类支持和集合协作需要的一般方法,所以我们可以简单地在循环中遍历这些种类,或者通过名字过滤它们。
应用推荐