I wanted to utilize the print function inside an SML program for sort of debugging purposes to print integer list type data, inside the function and during execution, e.g. inside a let block. However, as I saw, print can only print string type data. I cannot wait for the result to return to print what I want, because the function I created branches during execution and creates many different lists, and I want to see what is the resulting list at the end of each branch.
Therefore, is there a way to print a list inside of a function, as I would print a string?
I cannot wait for the result to return to print what I wantso what do you want to do? you need to provide at least some demo code. - Jason Huletblock - Noob Doob;so you can print it first and return whatever result you need to return. - Jason Hu