can multi children as type map? #45
Labels
No labels
bug
discussion
documentation
duplicate
ignore
new feature
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
golibs/gms-gods#45
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hi can multi children as type map? example :
@questionpython sorry, I didn't understand what you meant. Are you talking about multi-maps?
example :
@questionpython sorry, but I still don't understand your question. To me that looks like an array of elements that can either be single elements (integers) or other arrays, so I am confused about your mention of "maps".
There is nothing stopping you from doing that in GoDS as long as you type assert afterwards when fetching those elements, i.e. either it's an integer or an array. In case where the element is an array, iterate over its elements again (recursively).
Do you have a concrete example or use case of what you are trying to accomplish?