Martin McBride
Oct 26, 2022

--

Good article. An alternative I don't think you mentioned would be function composition. This is basically the same as doing f4(f3(f2(f1(x)))) but you use a higher order function to compose a single function, which you can then use in a generator.

I think there are one ot two Python functional programming libraries that offer his sort of thing with a nice syntax for compsoing functions.

--

--

Martin McBride
Martin McBride

Responses (1)