I've successfully installed Batteries and can get it work...somewhat. Any ideas why I'm getting the syntax error since Opam list this: depends: "oc ...
I've successfully installed Batteries and can get it work...somewhat. Any ideas why I'm getting the syntax error since Opam list this: depends: "oc ...
I'm trying to write a modified version of Batteries.LazyList.lazy_fold_right. I want a similar function that folds on two lazy lists rather than one l ...
Batteries.LazyList allows one to define lazy lists. I would like to define a lazy list consisting of x, f x, f (f x), f (f (f x)), etc. Based on com ...
Simple example: I have some functions and I need to call them all, to modify a structure, only in one function. With these simple functions the task c ...
I am trying to install bap required for ropc https://github.com/pakt/ropc as per the instructions given in ropc/bap/INSTALL in Ubuntu 14.04 . I have r ...
I am trying to do binary serach in OCaml. What is wrong in this code? It always return -1. It is an array of strings so that comparing elements give ...
I am trying to find the index of an integer array element in ocaml. How to do this recursively. Example code:let a = [|2; 3; 10|];; suppose I want to ...
Here is a simple ocaml file, just meant to get me to understand how to load a program that uses the Batteries library into the ocamltop. batteryassau ...
From this SO question: List Comprehension in Ocaml?, I could install the comprehension package with opam install pa_comprehension, and use the package ...
The package Batteries.Num overrides the functions (+), (-), ... So the compiler gives an error on the following simple code File "a.ml", line 3, ch ...
So basically in my project I need to use batteries (for File.lines_of and other related functions) and deriving (for Show.show) at the same time. How ...
My problem is to select a data structure for an event-based simulation. A number N of future events are maintained together with their time of occurr ...
I'm learning OCaml these days by some basic material and a project written in OCaml. But I don't understand some symbols in OCaml. For example: wha ...
Recently I have to read some source code written in OCaml. And I start to read the source code after reading materials about OCaml. When I compile the ...
I have a project with OCaml .ml files and a Menhir .mly file. I use ocamlbuild to compile the project. My _tags file contains this single line: Ev ...
Just a quick question. I'm wondering if there is a infix function composition operator in OCaml defined in the standard library (or in Jane Street's C ...
I extensively use Cygwin on a Windows 8 environment (I do not want to go ahead and boot/load Linux directly on the machine). I use the OCamlIDE plug-i ...
Trying to build ocaml-websocket, it fails with: The function line in question is, Any idea, if the lwt API was changed in previous release? ...
I successfully installed ocaml-batteries-included and findlib. I can do 'ocamlfind ocamlc -package batteries -c mycode.ml` without problems. Also, i ...
There seems to be conflicting information about batteries installation. I have tried several suggestions, but none have worked for me. I first tried ...