Pure Functions: A Review (Scala 3 Video)
Briefly

A pure function is one that only relies on its input parameters and algorithm to produce a result, without depending on external hidden states.
It cannot have any side effects like modifying external states or performing I/O operations, making it predictable and easy to test.
Read at Alvinalexander
[
]
[
|
]