Simultaneously iterating multiple sets of fields #22

Open
opened 2025-10-13 22:31:26 +00:00 by UserCurt · 1 comment
UserCurt commented 2025-10-13 22:31:26 +00:00 (Migrated from codeberg.org)

This issue suggests adding support for a way to iterate multiple sets of fields at different levels simultaneously with the same indexer, effectively a "respectively" approach. For example, normally /{A,B}/{X,Y} would resolve to [/A/X, /A/Y; /B/X, /B/Y]. There is currently no mechanism to resolve to [/A/X; /B/Y] without manually doing it. A good way to do this has not been determined, and no firm proposal is put forward in this issue. A named argument could be provided, or syntax could be modified, though it should be possible to have a "respective" association without dimension association (unlike in #20). Either approach will be similarly complicated as #20 for reasons described in that issue.

This issue suggests adding support for a way to iterate multiple sets of fields at different levels simultaneously with the same indexer, effectively a "respectively" approach. For example, normally `/{A,B}/{X,Y}` would resolve to `[/A/X, /A/Y; /B/X, /B/Y]`. There is currently no mechanism to resolve to `[/A/X; /B/Y]` without manually doing it. A good way to do this has not been determined, and no firm proposal is put forward in this issue. A named argument could be provided, or syntax could be modified, though it should be possible to have a "respective" association without dimension association (unlike in #20). Either approach will be similarly complicated as #20 for reasons described in that issue.
UserCurt commented 2025-10-14 01:01:08 +00:00 (Migrated from codeberg.org)

Is there a valid use case for this? A realistic example could help.

Is there a valid use case for this? A realistic example could help.
Sign in to join this conversation.
No description provided.