We currently need to use for loops to convert between arrays and sets:
This is not a bad thing in principle, but in my opinion there are multiple issues with it:
- These loops require a lot of space on the block diagram, which distracts from the *actual* code. The for loop provided on the palette in particular is absurdly large (and has a label attached to it). Most users probably won't use it more than once.
- The same code is used in many places to do the exact same job. This is a strong indicator for reusable code in the form of SubVIs.
- An empty for loop can confuse users who are new to sets.
I think LabVIEW should ship with malleable VIs to take care of conversions between 1D Arrays and Sets, because everyone who uses sets will need them eventually: