0

I wrote function, and for example I have the next line (this is only a part from the function):

up (St(d)::Dt::St(c)::[rp]) = Pr (Sym(d), Sym(c)) 

Pr, Sym, St, Dt - are all datatypes; d and c are strings.

When I run the function up, on arguments ([St("hello"),Dt,St("hi"),rp]), it's print val it =Pr(Sym(#), Sym(#)), instead of val it = Pr(Sym("hello"), Sym("hi")). Why? Thanks.

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Adam Sh
  • 8,137
  • 22
  • 60
  • 75
  • 1
    The answer: Can use in this command: `Control.Print.printDepth:=100`; – Adam Sh Nov 25 '11 at 13:12
  • possible duplicate of [SMLNJ expand # in output](http://stackoverflow.com/questions/3756460/smlnj-expand-in-output) – Gian Nov 26 '11 at 16:03

1 Answers1

2

This has been answered multiple times already. The solution is as Adam Sh describes. The same goes for lists and strings, just set the Control.Print.printLength.

Community
  • 1
  • 1
Jesper.Reenberg
  • 5,944
  • 23
  • 31