src/precore/util/Iterables.php
public static function elementsEqual(IteratorAggregate $iterable1, IteratorAggregate $iterable2) : bool
    {
        return Iterators::elementsEqual(
            Iterators::from($iterable1->getIterator()),
            Iterators::from($iterable2->getIterator())
        );
    }
public static function elementsEqual(IteratorAggregate $iterable1, IteratorAggregate $iterable2) : bool
    {
        return Iterators::elementsEqual(
            Iterators::from($iterable1->getIterator()),
            Iterators::from($iterable2->getIterator())
        );
    }
public static function elementsEqual ( IteratorAggregate $ iterable1 , IteratorAggregate $ iterable2 ) : bool { return Iterators :: elementsEqual ( Iterators :: from ( $ iterable1 -> getIterator ( ) ) , Iterators :: from ( $ iterable2 -> getIterator ( ) ) ) ; }
Checks whether the elements provided by the given iterables are equal correspondingly.
It uses {@link Objects::equal()} for equality check.

@param IteratorAggregate $iterable1
@param IteratorAggregate $iterable2
@return bool
Checks whether the elements provided by the given iterables are equal correspondingly . It uses { @link Objects :: equal () } for equality check .