Problem I’m new in OCaml and just want to be sure that I write code in “ocaml way”. My other […]
Tag: ocaml
Combinations of size k from a list in OCaml
Problem I wanted to write a small but non-trivial function in OCaml to test my understanding. I have only a […]
OCaml backend for REST API and JSON data
Problem I want to create a backend for a simple REST API in OCaml. For this I use the libs […]
Generating permutations in OCaml
Problem open Core.Std;; let print aofa = let s1 = ( Array.length aofa ) – 1 in for i = […]
String replacement in OCaml
Problem This is part of my first OCaml program. Its job is to replace a set of placeholder characters with […]
Advent of Code 2018 Day 1 in OCaml: Find length of cycles when accumulating deltas
Problem I just started Advent of Code 2018. This is exercise 2 of day 1, and I can’t understand why […]
Project Euler 10 – Summation of primes
Problem I’m currently attempting to learn OCaml, and I’m working thought the Project Euler problems to do so. Here’s some […]