Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: The ability for a map to iterate over a list #2215

Closed
dqnykamp opened this issue Jun 20, 2023 · 1 comment · Fixed by Doenet/DoenetML#249
Closed

Request: The ability for a map to iterate over a list #2215

dqnykamp opened this issue Jun 20, 2023 · 1 comment · Fixed by Doenet/DoenetML#249
Labels
DoenetML core enhancement New feature or request

Comments

@dqnykamp
Copy link
Member

We should be able to a put a <mathlist>, <numberlist>, <textlist>, <booleanlist> into the <sources> of a <map>, and it should iterate over the items in the list.

@dqnykamp dqnykamp added enhancement New feature or request DoenetML core labels Jun 20, 2023
@dqnykamp
Copy link
Member Author

This would be a lot easier once we have a strongly typed system. Then, this could be accomplished via sugar, where <sources> could wrap list children with an appropriate <extract>. At this point, I'm inclined to wait on that. Otherwise, we'd need to make significant changes to <map> logic. (Map currently relies on having separate children for each item, which we may not have for a <mathlist> with mergeMathLists).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DoenetML core enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant