All lessons

Functions

9 min · OCaml

Package code under a name so you can reuse it.

OCaml · Functions0/5 cleared

Enemy 1 of 5

Define a function with let name args = body. OCaml infers the types. The body's value is returned automatically.

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10