I have this datatype defined:
how could I write a function that would print this out?Code:datatype 'a somedata = empty | data of string * string * 'a somedata list;
I tried something like this :
thanks!Code:fun print (empty) = [empty] | print (data(birka,vertiba,[somedata])) = print([somedata]); | printxml data(birka,vertiba,[empty]) = [empty];



Reply With Quote