There currently isn’t an easy way to turn a plural set of objects into a tuple.
There is currently tuple string item
which allows you to convert a string that takes the form of a tuple back into individual components, but there isn’t an easy way to go the other direction.
There are 3 parts missing, and all are needed. The following are the proposed methods.
One is to escape a string to be able to be made apart of a tuple string.
Q: tuple string of ("string2, string3")
A: "( string2, string3 )"
The other is to make a plural set of objects into a tuple string.
Q: tuple string of ("string1";"string2, string3";"";"string,5")
A: "string1, ( string2, string3 ), , ( string,5 )"
The last is to convert a plural set of objects into a tuple.
Q: tuple of ("string1";"string2, string3";"";"string,5")
A: string1, ( string2, string3 ), , ( string,5 )
Here is my ugly workaround for this one: https://bigfix.me/relevance/details/3007530
It would also be extremely useful if there was an iterator for tuples.
It would also be useful if tuple string items
would give you the index and not just the string result.
Q: (index of it, it) of tuple string items of "string1, ( string2, string3 ), , ( string,5 )"
A: 0, string1
A: 1, ( string2, string3 )
A: 2,
A: 3, ( string,5 )
Related:
CC: @AlanM