DEV Community

Discussion on: Is Object-Oriented Programming "Dangerous"?

 
oenonono profile image
Junk

But as someone else has already pointed out, that example is OOP—and, in fact, may only be FP depending on how the functions passed into the methods are actually implemented.

list is the object (the subject)
map, filter, are methods of the object (the verbs)