src/Lazy/Enumerable.php
public function mapKeyValue(callable $converter)
    {
        return new Enumerator(
            function () use($converter) {
                foreach ($this->each() as $k => $v) {
                    $r = call_user_func($converter, $k, $v);
                    yield key($r) => current($r);
                }
            }
        );
    }
public function mapKeyValue(callable $converter)
    {
        return new Enumerator(
            function () use($converter) {
                foreach ($this->each() as $k => $v) {
                    $r = call_user_func($converter, $k, $v);
                    yield key($r) => current($r);
                }
            }
        );
    }
public function mapKeyValue ( callable $ converter ) { return new Enumerator ( function ( ) use ( $ converter ) { foreach ( $ this -> each ( ) as $ k => $ v ) { $ r = call_user_func ( $ converter , $ k , $ v ) ; yield key ( $ r ) => current ( $ r ) ; } } ) ; }
Return Enumerator which convert keys and values

@param callable $converter
@return \dooaki\Container\Lazy\Enumerator
Return Enumerator which convert keys and values