Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on WTFPython: Exploring and understanding Python through surprising snippets. Parent comment
If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed.
So it just removes false-y values.
Very handy I've used it a ton
There are no comments on this comment yet.
If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed.
So it just removes false-y values.
Very handy I've used it a ton