Determines if the elements of two Iterators are equal.
(first Iterator[T], second Iterator[T])
| 463 | |
| 464 | // Determines if the elements of two Iterators are equal. |
| 465 | func Equal[T comparable](first Iterator[T], second Iterator[T]) bool { |
| 466 | return EqualBy( |
| 467 | first, |
| 468 | second, |
| 469 | func(a T, b T) bool { |
| 470 | return a == b |
| 471 | }, |
| 472 | ) |
| 473 | } |
| 474 | |
| 475 | // Determines if the elements of two Iterators are equal using function cmp to |
| 476 | // compare elements. |
searching dependent graphs…