SplitScript reference / Migration / Tuple-shaped collection entries
Tuple-shaped collection entries
Migration from ASL, C#
Source pattern
Look for the ASL, C# concept Tuple-shaped collection entries in the source. The semantic difference below is more important than a token-for-token rewrite.
Canonical SplitScript
Use the canonical language and API symbols linked below.
Semantic difference
SplitScript does not use anonymous tuple element types. Give the entry shape a small named struct, store it in [Entry], and destructure its fields in loops and patterns.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
struct (language)