O'Reilly logo

Domain Modeling Made Functional by Scott Wlaschin

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

Functions Are Things

In the functional programming paradigm, functions are things in their own right. And if functions are things, then they can be passed as input to other functions:

images/fn_input.png

Or they can be returned as the output of a function:

images/fn_output.png

Or they can be passed as a parameter to a function to control its behavior:

images/fn_parameter.png

Treating functions as things opens up a world of possibilities. It’s hard to get your head around at first, but you can already see that even ...

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