O'Reilly logo

Reactive Programming with Swift by Cecil Costa

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

What is functional programming?

Once you read up on reactive programming, you will also find something called functional reactive programming (FRP). Functional programming is a declarative programming paradigm that avoids the changing of variable status and mutable data.

Functional programming has a few features, such as first-class functions (you can send functions as arguments, like you do in Haskell), immutable data, reducing, pipelining, recursing, currying (functions with multiple parameters), and monads. However, some authors prefer describing it as programming with functions that have no side effects, which means that a function doesn't change any data outside of it.

Let's take a look at a sample of nonfunctional programming for a better ...

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