into cell-path
for conversions
Convert value to a cell-path.
Signature
> into cell-path {flags}
Input/output types:
input | output |
---|---|
int | cell-path |
list<any> | cell-path |
list<record<value: any, optional: bool>> | cell-path |
Examples
Convert integer into cell path
> 5 | into cell-path
$.5
Convert string into cell path
> 'some.path' | split row '.' | into cell-path
$.some.path
Convert list into cell path
> [5 c 7 h] | into cell-path
$.5.c.7.h
Convert table into cell path
> [[value, optional]; [5 true] [c false]] | into cell-path
$.5?.c
Notes
Converting a string directly into a cell path is intentionally not supported.