# stack

`import { stack } from "destack:tensor";`

Stack tensors along a new axis.

```ds title="stack"
export function stack<T, const Rank: usize, const OutRank: usize>(tensors: &'a [Tensor<T, Rank>], axis: Axis, options?: TensorOutputOptions<T, OutRank> | undefined): Tensor<T, OutRank>
```

[language/library/src/tensor/ops.ds:78:84](https://github.com/destack-sh/destack/blob/main/language/library/src/tensor/ops.ds#L78-L84)
