---
title: "Comment by Manigandan Ravi on \"Introduction to Functional Programming\" | Hashnode"
description: "Hey first of all good explanation. But I don&#39;t understand why we should not iterate using for or while loops. Why you prefer map, reduce, filter etc,."
url: "https://hashnode.com/posts/introduction-to-functional-programming/603563b4bc9bf67747fdcc75/comment/603b407d0dad7e6b99e209ec"
---

[Discussion](https://hashnode.com/posts/introduction-to-functional-programming/603563b4bc9bf67747fdcc75)

Comment [Introduction to Functional Programming](https://hashnode.com/posts/introduction-to-functional-programming/603563b4bc9bf67747fdcc75)

[Manigandan Ravi](https://hashnode.com/@manirsg16)

[Feb 28, 2021](https://hashnode.com/posts/introduction-to-functional-programming/603563b4bc9bf67747fdcc75/comment/603b407d0dad7e6b99e209ec)

Hey first of all good explanation. But I don't understand why we should not iterate using for or while loops. Why you prefer map, reduce, filter etc,.

[Sayuri Kamble](https://hashnode.com/@sayurikamble)

[Feb 28, 2021](https://hashnode.com/posts/introduction-to-functional-programming/603563b4bc9bf67747fdcc75/comment/603b407d0dad7e6b99e209ec#reply-603b45c99aeaec6b8ed540ff)

That's one aspect of Functional Programming. Map, reduce, filter are all functions. Which are short and clean to read.

For / while loops are long and difficult to read and also a bit hectic.

Let me know if you need more clarification !

[Manigandan Ravi](https://hashnode.com/@manirsg16)

[Feb 28, 2021](https://hashnode.com/posts/introduction-to-functional-programming/603563b4bc9bf67747fdcc75/comment/603b407d0dad7e6b99e209ec#reply-603b4ffa9aeaec6b8ed54212)

Got it thanks..!! [Sayuri Kamble](https://hashnode.com/@sayuk)
