DEV Community

Discussion on: Functional Programming in PHP

Collapse
 
iquardt profile image
Iven Marquardt

A pure function

  • must not have any effects than returning a result value (RT)
  • must return the same output for the same input (deterministic)
  • must always return a value no matter what input is provided (total function)
Collapse
 
asiros profile image
Chonbashev Artyk

Thank for addition, appreciate this! :)