zed
zed copied to clipboard
path function
A function call path shall take an l-value expression and return the encoded path as an array of elements. e.g.,
path(a.b[2].c)
returns
["a", "b", 2, "c"]
This should handle generic map keys as well.