Member-only story

Imperative vs. Functional Swift Programming

What are they? Which should you use?

Steven Curtis
4 min readMay 18, 2022
Photo by Scott Graham on Unsplash

This article contains content previously published on Medium

Difficulty: Beginner | Easy | Normal | Challenging

This article is best used in conjunction with the Swift Playground which can be found here: https://github.com/stevencurtis/SwiftCoding/tree/master/ImperativeVsFunctional

Prerequisite Articles:

Terminology

Declarative programming: a programming paradigm which expresses a computation directly as pure functional transformation of data

Functional programming: a form of declarative programming. In itself, a programming paradigm which uses statements to change state

--

--

No responses yet