NEW: English for Tech Bundle → Save 40%
Your progress

Loading your progress…

Home
Code & Deliverynoun · /pjʊr ˈfʌŋkʃən/

pure function

In simple English

A pure function is a core concept in functional programming and modern software development. It is a function whose output depends only on its input parameters and does not change anything outside itself, such as global variables, databases, or files. This makes pure functions highly predictable and easy to test. In real tech workplaces, developers praise pure functions because they reduce bugs, improve code readability, and make testing straightforward. You will hear this term frequently in code reviews, architecture discussions, and when teams decide whether to refactor code. Pure functions contrast with impure functions, which have side effects like modifying external state or reading from databases.

Understand what makes a function pure and why it matters in software development.

At a glanceCEFR B2
Commonness4/5
Versatility4/5
FormalityCasualFormalNeutral
Spoken ↔ WrittenSpokenWrittenBoth
Directness ↔ DiplomaticDirectDiplomaticDirect
RegionUS and UK
New app · Free lessons

Speak up in meetings. Feel confident.

Standup vocabulary, native examples, and quick practice — 100+ free lessons

Start learning freeNo card needed · Google or email

Say it like this

Keep the function pure
This is a pure function, so it is easy to test
We need more pure functions in this module

Real examples

in a code review

"This function modifies the user object directly. We should make it pure by returning a new object instead."

in a team meeting

"Pure functions help us avoid bugs because they do not depend on hidden state or side effects."

in a standup

"I refactored the calculation logic into pure functions so the tests run much faster now."

Don't say this

Handle with care. Do not confuse with mathematical purity or cleanliness of code. Pure functions are specifically about predictability and side effects.

A pure function is one that looks clean and simple.
A pure function is one that always returns the same output for the same input and has no side effects.Purity is about behavior and predictability, not code appearance or simplicity.
We pure-functioned the code yesterday.
We refactored the code into pure functions yesterday.Pure function is a noun that describes a type of function, not a verb for refactoring code.
This pure function reads from the database and updates the cache.
This function reads from the database and updates the cache, so it is not pure.Functions with side effects like database reads or cache updates are impure by definition.

Other forms

noun

pure function

"A pure function never modifies external state."

adjective

pure

"We should write pure code whenever possible."

Often used with

write a pure functionCreate or implement a pure function in your code
keep functions pureMaintain the purity property when designing functions
pure function returnsEmphasize what a pure function outputs based solely on inputs
side effectsPure functions have no side effects; they do not modify external state
predictable outputPure functions produce consistent, predictable results

Similar words

deterministic functionSimilar concept emphasizing that output depends only on input, but less commonly used in modern tech
function without side effectsA more descriptive phrase meaning the same thing, but longer

Opposites

impure functionfunction with side effects

Practice

Try it

4 quick exercises

Complete the sentence

1. This function modifies a global variable, so it is not a _______ function.

Spot the mistake

2. Which sentence uses pure function incorrectly?

Pick the most natural phrasing

3. Your colleague asks about improving testability. How do you respond?

Rewrite naturally

4. Rewrite this using pure function language: The add function takes two numbers and gives back their sum without changing anything else.

Questions

Quick poll

Have you said "pure function" in a standup this week?

Want more structured practice like this? Our English for Programmers course covers real workplace English in depth.

Your badges