Include file for showing quotes on string elements of lists (and more)

Topic Missing quotes on string elements of lists expresses my surprise on the output of user-message [“1” “2” “3”]' not showing the quotes.

@ERSUCC suggested to write a function to do the conversion.

I have called the function repr in analogy with Python’s function for a similar purpose.
It turned out that the function needs a string substitution function, which I could not find in NetLogo.
So, the accompanying include file constains function substitute as well as function repr.

Feel free to include this file in any NetLogo models.
Formally, I have put the code under GPL license. (Without a license, it is formally free-for-nobody…)

1 Like

There was a small style issue in the code. I have removed the file from the previous post.
Here is the corrected version instead:

repr-tool.nls (2.9 KB)