I'm working with datasets and I have some questions.
First, is there a way to print the contents of a dataset for debugging purposes, or else some other way to decipher what's currently contained in one? Second, if I create a dataset of array variables, how do I add another array to the dataset in a way that means the array itself is an entry in the dataset and not that the contents of the array have been added to a dataset? Thanks!
Comments
You can use Javascript to output the set's content to your web-browser's Developer Console** but you will need to know the structure and datatypes of the values contained within it to do so because it can effect the code you need to output the values.
If the set contains primitive datatypes like Strings or Numbers, or arrays of Strings or Numbers then you could do something like the following: If the set contains more complex datatypes like Arrays of Arrays, DataMaps, DataSets, or Objects then the code requires to convert each element in the set to a String output becomes more complex.
In a similar way to how you dynamically add extra items to an (array:), with arithmetic.