Why are pure functions important?
Including a pure attribute in your function and subroutine statements forces you to write side effect-free code. This has two principal benefits: Tip Write pure procedures whenever possible. As I’ll show you later in the book, using the pure attribute can get you a long way toward functional programming with Fortran.