As well as module-level named functions, Gleam has anonymous function literals.
Anonymous functions can be used interchangeably with named functions.