News for hackers. Stuff that matters.
Re:A crash course in Python “comprehensions” and “generators” by henron on Friday December 09, 2022 @09:16PM (#33929102)
I really prefer working with functional transformations over containers (including iterators).
Re:A crash course in Python “comprehensions” and “generators” by saeranv on Saturday December 10, 2022 @12:00AM (#33930022)
What's a functional transformation?
Re:A crash course in Python “comprehensions” and “generators” by ghostwriter on Saturday December 10, 2022 @06:51AM (#33931794)
fmap, fold, traverse, join
Re:A crash course in Python “comprehensions” and “generators” by saeranv on Saturday December 10, 2022 @10:55AM (#33933645)
I guess I'm lacking some background to understand this.

So, I recognize fold, from the above operations ('reduce' in python), what makes it a "functional transformation"?

I'm googling function/functional transformations, and the results refer to translating, flipping or scaling a function, like transforming f(x) to f(x + 2) or f(x) + 2. It doesn't seem like it has anything to do with what you guys are referring to, but correct me if I'm wrong.

Re:A crash course in Python “comprehensions” and “generators” by yababa_y on Saturday December 10, 2022 @11:16AM (#33933800)
function as in functional programmi ng. https://youtu.be/2MXyNS33t2k is an indepth video on how c++ and haskell sequence transformations work and contrast.