Error Messages/40222

< Error Messages
Revision as of 14:30, 23 July 2026 by Lchrisman (talk | contribs) (Created page with "== Error message == :Lexical error at line 1 while checking One_nested_item_should_not_parse: [1,2,[3,4],5] ↑ :Unindexed lists cannot be nested. A value may contain...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Error message

Lexical error at line 1 while checking One_nested_item_should_not_parse:
[1,2,[3,4],5]
     ↑
Unindexed lists cannot be nested. A value may contain only one unindexed dimension.

Description

An array value can contain at most one implicit dimension. A nested list, as appears here, would introduce a second implicit (unnamed) dimension, and thus violate this principle.

If you really want to create a data structure with nested lists, you can do so using references, e.g.,

[1, 2, \([3,4]), 5]

See also

Comments


You are not allowed to post comments.