numlist result numlist syntaxhighlight functional programming higher order functions syntaxhighlight lang javascript const result filter n n map reduce b b syntaxhighlight simulating state tasks example maintaining bank account balance often seem naturally implemented state pure functional programming performs tasks tasks accepting user input printing screen different
Formal science Computer science Programming languages Functional programming