Functions should be stateless in functional programming. It is important that functions do not depend on state or maintain the same which in not in their scope.
This helps to keep functions independent and can be easily tested.
↧