I\'m interested in learning this lang开发者_如何学Gouage, but it seems that there is very few tutorials and books on the subject.
The prototype must be: listMinPos(lst) I\'m able to write the same using two arguments, (list and index), but am not able to even think how it can be po开发者_运维技巧ssible using only the list arg
I\'ve taken the following code from http://www.ocaml-tutorial.org/data_types_and_matching I\'ve been trying to write a C stub for following, to invoke from our PHP codebase. I can\'t quite understand
I have a very basic question regarding OCaml records. Suppose I have a record defined: type r = {a: int; b: int; c: int}
Ocaml\'s standard library contains various modules: List, 开发者_高级运维Map, Nativeint, etc. I know that interfaces for these modules are provided (e.g. for the List module), but I am interested in t
I wrote a code: let rec compareVs v1 v2 = if List.length v1 == 0 then true else ((match v1 with [] -> 0. | h::l -> h) == (match v2 with [] -> 0. | h::l -> h)) &&
In my C# application, I\'m firing up a program using the .NET Process class.Sometimes, after the program has finished, the Process.ExitCode is -1.It\'s a large program, and I\'m having trouble trackin
As part of a bigger problem of enumerating a set, I need to write an OCaml function \'choose\' which takes a list and outputs as the list of all possible sequences of size k made up of elements of tha
I\'m trying to make a recursive function to get the transpose of a list of lists, n x p to p x n. But i\'m unable to do so. I\'ve been able to make a function to transpose a 3 x n list of lists to an
This isn\'t a homework question, by the way. It got brought up in class but my teacher couldn\'t think of any开发者_开发百科. Thanks.How do you define the identity functions ? If you\'re only consider