public function map(Closure $callback) { foreach ($this->segments as $dictionary) { $callback($dictionary); } }