Is assignment of array elements with let
not supported?
#1283
Answered
by
drkameleon
programandala-net
asked this question in
Q&A
-
It seems that assignment of array elements with the
There's no difference when the index is a literal in brackets:
Or when it's a variable:
Is it a by-design limitation of the |
Beta Was this translation helpful? Give feedback.
Answered by
drkameleon
Oct 21, 2023
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
programandala-net
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basically, the
\
notation is for paths.x\y
is a:path
value, meaning get the Y key (which is a value!) from X:pathLabel
, e.g.x\y: ...
set the Y key of X to whatever is on the right-hand side.Now, a few asterisks:
:word
). In the above case, it'sx
(which is fine). In you example, this'a
is a literal, and paths don't work with literals (yet?)