News for hackers. Stuff that matters.
Re:Functional Programming – How and Why by vram22 on Monday January 02, 2023 @03:04AM (#34215507)
>In those examples you start with an object, call a method on the object returning a new object, then call a method on that and so on. I like this kind of chaining in OOP.

Then this post from my blog might be of interest:

Examples of method chaining in Python:

https://jugad2.blogspot.com/2016/02/examples-of-method-chain...

Re:Functional Programming – How and Why by jemmyw on Monday January 02, 2023 @07:12AM (#34217095)
Not really, I already know what it is and use it all the time. I mean, I just wrote about it. Plus I don't program in python.

Honestly, I just opened your page and it's not a great example. Consider the method chaining in the linked article that operates on an array, it's much closer to real problems imo, and more succinct.

Re:Functional Programming – How and Why by vram22 on Saturday January 07, 2023 @07:08PM (#34294523)
Which linked article?