ocaml-core Questions
1
Solved
I have simple program, which uses function from Core.Std module, e.g.:
open Core.Std
let _ = List.last [1;2;3]
I can compile and link it by ocamlfind or ocamlbuild:
ocamlfind ocamlc -package co...
Doublecross asked 26/3, 2018 at 18:46
1
Solved
I'm new to OCaml, and I it's often suggested that I use Jane Street's standard-library instead of the one that ships with the compiler.
However, there seem to even be several of those, and I don't...
Percussionist asked 2/10, 2017 at 19:56
6
Solved
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 Core or in Batteries) like the (.) function in H...
Bloodthirsty asked 19/5, 2013 at 16:45
3
According to Real World OCaml, the type of "abc" should be string. But actually in my utop REPL, it's of type bytes.
I've already opened Core.Std. Why is that?
(The version of OCaml is 4.02.2; Co...
Kalimantan asked 19/7, 2015 at 11:13
2
Solved
Today, I was going through the source code of Jane Street's Core_kernel module and I came across the compose function:
(* The typical use case for these functions is to pass in functional argument...
Suhail asked 22/3, 2015 at 5:55
2
Solved
Jane Street's Core lib has such a function: Fn.const.
https://github.com/janestreet/core_kernel/blob/master/lib/fn.ml
let const c = (); fun _ -> c
val const : 'a -> 'b -> 'a
produces a fu...
Brittnybritton asked 16/4, 2014 at 21:38
1
© 2022 - 2024 — McMap. All rights reserved.