Is there any way to print full list using SML?
Usually what happen is in SML when I have too many elements it prints first few elements separated by \",\" and then i
This output is only for debugging and while is convenient, is not a proper way to do so (you don't get this from running an executable if you generate it). To print out all elements independent of print limit set in ML prompt of your choice, you can do following:
fun listToString [] = "[]\n"
| listToString (c::l) =
"[" ^ (Int.toString c)
^ foldl (fn (s1, s2) => s2 ^ ", " ^ s1) "" (map (Int.toString) l)
^ "]\n"
val _ = print (listToString a)