src/Collection/ImmArray.php
public function walk(callable $cb)
    {
        foreach ($this as $i => $el) {
            $cb($el, $i, $this);
        }
        return $this;
    }
public function walk(callable $cb)
    {
        foreach ($this as $i => $el) {
            $cb($el, $i, $this);
        }
        return $this;
    }
public function walk ( callable $ cb ) { foreach ( $ this as $ i => $ el ) { $ cb ( $ el , $ i , $ this ) ; } return $ this ; }
forEach, or "walk" the data
Exists primarily to provide a consistent interface, though it's seldom
any better than a simple php foreach. Mainly useful for chaining.
Named walk for historic reasons - forEach is reserved in PHP

@param callable $cb Function to call on each element
@return static
forEach or walk the data Exists primarily to provide a consistent interface though it s seldom any better than a simple php foreach . Mainly useful for chaining . Named walk for historic reasons - forEach is reserved in PHP