源码 def flatMap[B](f: A => GenTraversableOnce[B]): Iterator[B] = new AbstractIterator[B] { // 定义一个空的迭代器。注意泛型是B,当前迭代器中元素的类型是A private var cur