---
title: "==(_:_:)"
framework: combine
role: symbol
role_heading: Operator
path: "combine/publishers/collectbycount/==(_:_:)"
---

# ==(_:_:)

Returns a Boolean value that indicates whether two publishers are equivalent.

## Declaration

```swift
static func == (lhs: Publishers.CollectByCount<Upstream>, rhs: Publishers.CollectByCount<Upstream>) -> Bool
```

## Parameters

- `lhs`: A CollectByCount instance to compare.
- `rhs`: Another CollectByCount instance to compare.

## Return Value

Return Value true if the corresponding upstream and count properties of each publisher are equal; otherwise false.
