# assoc-in Associate a value at a path in a nested map. ## Syntax
[assoc-in $map $path $val]
`$path` is a vector of keys from outermost to innermost. Immutable — intermediate maps are created as needed. ## Examples
[assoc-in %{ a %{ b 1 } } @{ a b } 2]    # %{ a %{ b 2 } }
[assoc-in %{ } @{ x y } 5]               # %{ x %{ y 5 } }
[assoc-in %{ a 1 } @{ a } 9]             # %{ a 9 }
## Returns New map with `$val` set at `$path`. ## See Also `get-in`, `assoc`, `dissoc`, `merge`