Michael Kohl
banner
citizen428.net
Michael Kohl
@citizen428.net
Your friendly neighborhood anarcho-cynicalist. I do things with computers and occasionally succeed. 🇦🇹 in 🇹🇭 since 2013. Fan of 1990s pop culture. I delete old posts.

I'm more active on Mastodon: https://chaos.social/@citizen428
The pipe operator and labeled argument are unrelated concepts. With Base the code you shared above would be

rows |> List.map ~f:(fun row -> render_row row widths)

Maybe read up on labeled arguments if you find them confusing:

ocaml.org/manual/5.4/l...
OCaml - Labeled arguments
ocaml.org
November 2, 2025 at 2:29 PM
~f: is a labelled function argument, like a named arg in other languages.
November 2, 2025 at 11:07 AM
I took two simple code examples from Real World OCaml and threw them in a gist for you, including some comments on the differences between Base and the standard library.

gist.github.com/citizen428/b...

#ocaml
Standard Library
Standard Library. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
November 2, 2025 at 10:02 AM
Reposted by Michael Kohl
November 1, 2025 at 10:51 AM
This question recently popped up in a WhatsApp group some close buddies and I have. We got quite close to the real answer, though we definitely didn't consider wind instruments 😅
October 29, 2025 at 6:04 AM