# splat

`import { splat } from "destack:math";`

Broadcast scalar to all lanes.

Creates a vector with all lanes set to the same scalar value.

```ds title="splat"
export declare function splat<T, const N: usize>(value: T): Vector<T, N>
```

[language/library/src/math/vector.ds:23](https://github.com/destack-sh/destack/blob/main/language/library/src/math/vector.ds#L23)
