You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is very useful to allow data to refer to itself.
I propose bracket-specifier = "[" (number / "*") "]" / "[]" be extended to bracket-specifier = "[" (expression / "*" ) "]" / "[]" for indexes.
slice-expression = [number] ":" [number] [ ":" [number] ] be extended to slice-expression = [expression] ":" [expression] [ ":" [expression] ] for slices
The scope of the expression is the parent of the object being sliced, this can be extended with let()
The text was updated successfully, but these errors were encountered:
innovate-invent
changed the title
Allow identifier / function-expression in index and slice expression
Allow expression in index and slice expression
Mar 5, 2021
It is occurring to me that this would be ambiguous with multiselect list.
for example is [a] equivalent to [@.a] (list) or @[a] (index)
currently it is a multiselect list
I was considering [&a] to disambiguate, but that is already defined as a multiselect list of expressions
perhaps a index(@, i) function? but that would duplicate the index operator
perhaps continue with the way a filter disambiguates? something like [! a] or [* a]
It is very useful to allow data to refer to itself.
I propose
bracket-specifier = "[" (number / "*") "]" / "[]"
be extended tobracket-specifier = "[" (expression / "*" ) "]" / "[]"
for indexes.slice-expression = [number] ":" [number] [ ":" [number] ]
be extended toslice-expression = [expression] ":" [expression] [ ":" [expression] ]
for slicesThe scope of the expression is the parent of the object being sliced, this can be extended with
let()
The text was updated successfully, but these errors were encountered: