public function get(callable $codeBlock = null)
    {
        $getValue = function (Maybe $value) {
            return $value->get();
        };

        return array_map($getValue, parent::get($codeBlock));
    }
public function get(callable $codeBlock = null)
    {
        $getValue = function (Maybe $value) {
            return $value->get();
        };

        return array_map($getValue, parent::get($codeBlock));
    }
public function get ( callable $ codeBlock = null ) { $ getValue = function ( Maybe $ value ) { return $ value -> get ( ) ; } ; return array_map ( $ getValue , parent :: get ( $ codeBlock ) ) ; }
Returns the contained collection and applies an optional code-block to each element before returning it.

@param callable $codeBlock

@return array
Returns the contained collection and applies an optional code - block to each element before returning it .