3 ms·
Yes, Fortran has `pure` and `impure` attributes for functions/subroutines (with and without side-effects). ``` pure recursive function factorial(n) integer,
by TheRealKing 4y ago
Yes, Fortran has `pure` and `impure` attributes for functions/subroutines (with and without side-effects).
```
pure recursive function factorial(n)
integer, intent(in) :: n
...
end
```