Functions as Values
In this lesson, we'll further explore the concept of functions being values.
In Reason, functions are known as first-class values, which means that they can be treated like any other value obtained from an expression.
Functions as Tuple Components
Here’s a simple example of functions being used as tuple components. For learning purposes, these functions are fairly simple, but this doesn’t mean that we can’t use much more complex functions in such a scenario:
Get hands-on with 1400+ tech skills courses.