I am looking for a julia function that can print both the
names and the values of a sequence of variables, as per the following example:
#Define a number of variables (could be any number)
s1 = 123
s2 = " s g ny ny ny uuy nhneejn"
s3 = 123.4567890
#Print their names and values using a custom
#julia function my_display(), taking a
#variable number of arguments, as follows.
my_display(s1,s2,s3)
s1 = 123
s2 = " s g ny ny ny uuy nhneejn"
s3 = 123.4567890
I have found a primitive way of doing this as follows.
my_display([:s1,s1,:s2,s2,:s3,s3])
Any other solutions that are more elegant and
general would be appreciated.