Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ml > SML please for ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 927 of 968
Post > Topic >>

SML please for translation

by stainboy <jakub.pola@[EMAIL PROTECTED] > Sep 26, 2007 at 08:00 PM

Hello. I'm trying to learn something but i have big problems. Could
you translate me this program:


type var = string;
datatype exp =
		  N     of int
   		| V     of var;

type value = int;
type state = var -> value;

fun expSem
		(N i)(s) = i
      | expSem (V v)(s:state) = s v;


what mean: (N i)(s) = i
also:
(V v)(s:state) = s v;


Thank you verry much for help.
 




 4 Posts in Topic:
SML please for translation
stainboy <jakub.pola@[  2007-09-26 20:00:56 
Re: SML please for translation
dbenson@[EMAIL PROTECTED]  2007-10-01 19:45:39 
Re: SML please for translation
Chris Rathman <Chris.R  2007-10-01 19:45:02 
Re: SML please for translation
Ivan Jager <aij+nospam  2007-10-15 23:03:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:06:26 CDT 2008.