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

# Function poseidon2_hash_subarray_with_separator

Module: `noir_aztec::protocol::hash`

```rust
pub fn poseidon2_hash_subarray_with_separator<let N: u32, T>(
    input: [Field; N],
    in_len: u32,
    separator: T,
) -> Field
where
    T: ToField
```

Computes a Poseidon2 hash with a domain separator over a dynamic-length subarray of the given input. Only the first `in_len` fields of `input` are absorbed; any remaining fields are ignored. For `in_len == N` this is equivalent to [`poseidon2_hash_with_separator`](/aztec-nr-api/mainnet/protocol_types/hash/fn.poseidon2_hash_with_separator.md).
