I ha开发者_运维百科ve defined this type : type state= L of state_simple * int | N of state * int |State of int
I\'m writing a program开发者_如何转开发 in ocaml containing some loops \"for\", my problem is that for each of these cycles you receive this message: \"warning 10 : this expression should have type un
I am trying to read a file and return the element read from the file as an input to another function.
Is it possible to create a list by combing elements of a lis开发者_StackOverflowt rather than creating a list of lists?
My goal is to implement a transition function in OCaml which takes in input an state and a character is returns a positive Boolean formula(including true and false).
can we do multiple operations inside our if-else loop in ocaml? I am trying to do the following: let rec appendtolist n list b=
In case I have to disassemble a data type as its variable size, can I still use the \"match and with, and if the answer is yes you could help me figure out how (I\'m a beginner with this language), or
I am trying to create permutations of strings contained in a list in OCaml. I have worked on the following snippet of code till now but am facing a problem passing the first string of the list to my m
Assume I have a mathematical expression in a \"tree\" form in OCaml.It\'s represented as an algebraic type like this:
What is the difference between \'a and \'_l? I was looking at this error, and couldn\'t comprehend it: