11-10-2022 09:40 AM
Anyone know how to make a VIM which will break if it is wired to a cluster with anything other than two elements in it (Not necessarily the same elements)
Use case:
A VIM which converts an array of clusters to a map. See attached.
Solved! Go to Solution.
11-10-2022 10:40 AM - edited 11-10-2022 10:42 AM
Try this:
I haven't tested it super duper thoroughly but it seems good so far. There could be some weird corner cases with clusters of other clusters, or clusters of variants, etc but it seems to work OK for normal datatypes.
Edit: I tried a couple weird ones, like a 2-element cluster containing a string and another cluster that itself contained a string and a variant, and it seems to work.
11-11-2022 01:13 PM
That is spot on. I would not have ever thought of doing that!