DEV Community

Discussion on: Example: Imperative vs. Functional

Collapse
 
aminmansuri profile image
hidden_dude

yes.. But using MAP and REDUCE is not truly declarative in languages such as Javascript. But its OK to imagine it as such.

If you're composing "pure" functions to solve problems, then you're using a functional approach. Whether you do it in a declarative or in an imperative language.