smlnj - How do I print type information in SML? -


After executing a command in SML, "this" has returned back, in which the returned data is from the data and commands. For:

  incorrect; Assume that it is bound in a program:  
  val argsToOutput = (map (fn (Absyn.var_exp) (N)) => (lookupReference env n) exps)  

Is there a way to print value and datatip "argsToOutput" (in the middle of the program) How is this "printed"? "<"

You can do this:

  val argsToOutput = (Map (fn (Absyn.var_exp (n)) => (lookupReference env n) exps) ... in (print (argsToOutput); 2) end  

where Instead of 2 you get the value of your body, the obstacles are printed on ArgutoOutup, but it will tell you the type where the expected style is the string.

When I had to print the value of datatype, I created a toasting () function that was datatype, and changed it to a string. It takes some work because there were some nested datasets, but were very valuable later because it worked on all types of that type.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -