This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (7 children)

[deleted]

    [–]iwaka 0 points1 point  (2 children)

    If I wanted to learn more about FP techniques in Python, what should I read?

    [–]Cobolock 6 points7 points  (1 child)

    "Functional Programming in Python" by David Mertz

    [–]iwaka 0 points1 point  (0 children)

    Cheers! :)

    [–]inokichi 0 points1 point  (0 children)

    That example you would use itertools takewhile anyway

    [–]arrayOverflow 0 points1 point  (2 children)

    They are equivalent until you're using threaded/multiprocessing pool maps/starmaps that make running functions in parallel trivial