Learning OCaml: Having Fun with the Fun Module

When I started to play with OCaml I was kind of surprised that there was no id (identity) function that was available out-of-box (in Stdlib module, that’s auto-opened). A quick search led me to the Fun module, which is part of the standard library and is nested under Stdlib.

19 Jul 2025

Bozhidar Batsov

Read Article
The origin of the pipeline operator (`|>`)

These days a lot of programming languages (especially those leaning towards functional programming) offer a pipeline operator (|>), that allows you to feed some data through a “pipeline” of transformation steps.1 Here’s a trivial example in F#: Funny enough, even Ruby has a pipeline operator these days, although it’s not particularly useful there. ↩

22 May 2025

Bozhidar Batsov

Read Article
Learning OCaml: Functions without Parameters

A couple of days ago I noticed on OCaml’s Discord server that someone was confused by OCaml function applications (invocations) like these:

02 Mar 2025

Bozhidar Batsov

Read Article