Tag Archives: list comprehension

Python: Self references in List comprehension

One of the great abilities in Python that is copied over from Haskell is the ability to construct lists from other lists or iterators inline. This is of course limiting in certain cases where self references are necessary. For example,…

Posted in Blog, Programming, Python, Snippets | Tagged , , , , , , | Leave a comment