> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Module collapse

Module: `noir_aztec::utils::array::collapse`

## Functions

- [collapse](/aztec-nr-api/v6.0.0/noir_aztec/utils/array/collapse/fn.collapse.md): Collapses an array of `Option`s with sparse `Some` values into a `BoundedVec`, essentially unwrapping the `Option`s and removing the `None` values.
