News for hackers. Stuff that matters.
Re:Python: Uncovering the Overlooked Core Functionalities by KMnO4 on Monday July 24, 2023 @08:35PM (#36856203)
Would that really work? You can chain those functions because they return the same type. For example, filtering a list returns a subset of the list.

Any/all return a Boolean, so the chain would stop there.

I also personally think

    any(x % 5 in range(y))
Is more clear than

    range(y).any(lambda x: x % 5)

There are no comments on this comment yet.