OCaml Easy · Lesson 3

Labeled and optional arguments

~label arguments, ?optional with defaults, and why a unit argument ends them.

Lessons · OCaml Easy · Lesson 3 of 10

Labeled and optional arguments

~label arguments, ?optional with defaults, and why a unit argument ends them.

Illustration for OCaml
~label arguments, ?optional with defaults, and why a unit argument ends them.