---
title: collect()
framework: combine
role: symbol
role_heading: Instance Method
path: combine/just/collect()
---

# collect()

## Declaration

```swift
func collect() -> Just<[Output]>
```

## See Also

### Reducing elements

- [ignoreOutput()](combine/just/ignoreoutput().md)
- [reduce(_:_:)](combine/just/reduce(_:_:).md)
- [tryReduce(_:_:)](combine/just/tryreduce(_:_:).md)
