Navigation
Synopsis Convert a list to a string.
Function str toString(list[&T] lst)
Usage import List;
Description Convert lst to a string.
Examples
rascal>import List;
ok
rascal>toString([10, 20, 30]);
str: "[10,20,30]"
rascal>toString(["zebra", "elephant", "snake", "owl"]);
str: "[\"zebra\",\"elephant\",\"snake\",\"owl\"]"

Questions
Question [1].
The type of toString([-14, -2, 19, -4]) is

Question [2].
toString([-19, -4, -4]) == 



Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.