src/GeneratorFileDictLoader.php
protected function traversing(Generator $generator, Closure $callback)
    {
        foreach ($generator as $string => $pinyin) {
            $callback([$string => $pinyin]);
        }
    }
protected function traversing(Generator $generator, Closure $callback)
    {
        foreach ($generator as $string => $pinyin) {
            $callback([$string => $pinyin]);
        }
    }
protected function traversing ( Generator $ generator , Closure $ callback ) { foreach ( $ generator as $ string => $ pinyin ) { $ callback ( [ $ string => $ pinyin ] ) ; } }
Traverse the stream.

@param Generator $generator
@param Closure   $callback

@author Seven Du <shiweidu@outlook.com>
Traverse the stream .