MCPcopy Create free account
hub / github.com/Soft/iter / Equal

Function Equal

iterator.go:465–473  ·  view source on GitHub ↗

Determines if the elements of two Iterators are equal.

(first Iterator[T], second Iterator[T])

Source from the content-addressed store, hash-verified

463
464// Determines if the elements of two Iterators are equal.
465func 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.

Callers 2

TestEqualFunction · 0.85
TestStringFunction · 0.85

Calls 1

EqualByFunction · 0.85

Tested by 2

TestEqualFunction · 0.68
TestStringFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…