I am trying to find the length of a list in ocaml. I call a function first called > let get_list_length e in
So I have a recursive function that takes in 2 ints, and a out_channel and basically prints line(a,a+1). It should do this until value of a is equal to b. I.e if a = 1, b = 5
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
I\'m not sure how to remove the cycles from a mutable list of type: type \'a m_list = Nil | Cons of \'a * ((\'a m_list) ref)
Write a function rindex l e : \'a list -> \'a -> int that takes a list and a single element and returns the position of the last occurrence of that element in the list (indexed by zero). You sh
I am trying to define a new type of data, to create a list and then to create a stream out of the list:
I got a slight problem implementing arrays in ocaml. For example, when on the terminal(konsole) and I type
I am at the end of my rope here. I cannot get anything to work in ocamllex, and it is driving me nuts. This is my .mll file:
开发者_StackOverflowI knew there is a library for pretty printer using camlp5 in Linux. Is there anything similar for Windows? Thank you.You can build ocaml and camlp5 under windows, using MinGW and
I\'m very new at OCaml but worked all the past two days in order to get a good understanding of how to use it.