src/mako/utility/Collection.php
public function each(callable $callable): void
	{
		foreach($this->items as $key => $value)
		{
			$this->items[$key] = $callable($value, $key);
		}
	}
public function each(callable $callable): void
	{
		foreach($this->items as $key => $value)
		{
			$this->items[$key] = $callable($value, $key);
		}
	}
public function each ( callable $ callable ) : void { foreach ( $ this -> items as $ key => $ value ) { $ this -> items [ $ key ] = $ callable ( $ value , $ key ) ; } }
Applies the callable on all items in the collection.

@param callable $callable Callable
Applies the callable on all items in the collection .