# insert-nth
Return a new list with a value inserted at an index.
## Syntax
[insert-nth $list $n $val]
`$n` is a zero-based insertion index, clamped to `[0, length]`.
## Examples
[insert-nth @{ 1 3 } 1 2] # @{ 1 2 3 }
[insert-nth @{ 1 2 } 0 0] # @{ 0 1 2 }
[insert-nth @{ 1 2 } 9 9] # @{ 1 2 9 } (clamped to end)
## Returns
New list with `$val` inserted at `$n`. Elements from `$n` onward shift right.
## See Also
`set-nth`, `remove-nth`, `append`, `nth`