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

# Function subarray

Module: `protocol_types::utils::arrays`

```rust
pub fn subarray<T, let N: u32, let M: u32>(array: [T; N], offset: u32) -> [T; M]
where
    T: Empty
```

Helper fn to create a subarray from a given array.
