O'Reilly logo

Programming Elm by Jeremy Fairbank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Get Started with Functions

Functions are the most key parts of Elm applications. Each piece of behavior in an Elm application lives inside a function. In this section, you will create and call functions. You will also learn about Elm’s expressiveness and work with some of Elm’s primitive data types such as strings and numbers.

Explore with the Elm REPL

Before you begin, you will need a sandbox for interacting with Elm functions. If you haven’t done so already, visit Appendix 1, Install Elm to install Elm on your system. After installing Elm, you will have several command-line tools at your disposal. Right now, we only care about the Elm REPL tool. REPL is an acronym for read-evaluate-print loop. The Elm REPL lets you interact with the Elm ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required