DEV Community

Discussion on: Functional programming basics part 1: Pure function

Collapse
 
stojakovic99 profile image
Nikola Stojaković • Edited

Luka is right. For function to be pure it shouldn't change things out of it's scope too which void function can do. It's because whole point of pure functions is to write more predictable code.