Search code examples
smlsmlnj

Increase print depth for lists in SML/NJ


I'm using Emacs to write a simple function in sml of about 4 lines and when I try to call the function/evaluate it in the buffer it returns this with 3 dots at the end

val it = [1,2,2,2,2,2,2,2,2,2,2,2,...] : int list

What's the dots at the end? My code doesn't print any dots. Is this is from Emacs or sml? any hints please.

Also I'm supposed to get a longer list like

[1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]

is that why the dots there?


Solution

  • is that why the dots there?

    Yes.