Pure Function

Return to Glossary

Pure_function is a function that depends only on its declared input parameters and its algorithm to produce its output. It does not read any other values from “the outside world” — the world outside of the function’s scope — and it does not modify any values in the outside world.

Source: https://alvinalexander.com/scala/fp-book/definition-of-pure-function/