i have this datatype datatype e = X | Const of int | P 开发者_StackOverflow中文版of e*e | S of e*e | M of e*e | D of e*e;
I\'m new to ML and with to have a function that receives a special pre-defined datatype, and able to reference to its entire argument datatype, rather its components.
I have to code a function that receives a sequence (finite or infinite) and returns an identical sequencewith the only difference that if an exception occurs during the sequence then the function ret
I have an exam (Functional Programming in SML) coming up in a week. I have become fairly confident in the programming language SML and the functional paradigm, but I have a quite big problem with prov
Without taking the effort to actually clone JUnit or something, I\'m throwing together a few utility functions to help test some SML code.I do know about QCheck, but it can\'t do this one thing either
I haven\'t worked with SML in awhile and I came across this line of code: type memory = string -> int;
I have a university course about functional programming, where I use SML. As a preparation for the exam, I am working on some of the older exam sets without solutions.
Why is garbage col开发者_开发知识库lection rarely spoken about in languages such as Pascal and C, whereas it is very important in SML and Java?Pascal and C don\'t traditionally use garbage collections
It is well known that Haskell-style typeclasses and ML-style modules offer different mechanisms for specifying interfaces. They are (possibly) equivalent in power, but in practice each has their own b
I would like to access a random member of a tuple and I\'m not sure how to set #n to a variable. Here is my code: