A list comprehension is a syntactic construct available in some programming languages for creating a list based on existing lists. It follows the form of the mathematical set-builder notation (set comprehension) as distinct from the use of map and filter functions.
Consider the following example in set-builder notation.
This can be read, " is the set of all numbers "2 times " where is an item in the set of natural numbers (), for which squared is greater than ."