November 2009
1 post
Python: List Comprehension, Closures & Lambda
The best part of learning is being able to share your knowledge is a way that’s autodidactic & condescending. So, here’s a little (possibly obvious) nugget I came up with for using list comprehension, closures & lambda.
My problem: How do I take a list of n-dimensional coordinates, and make a list of just one of the coordinates?
You could do it like this with list...