|
|
|
|
|
by mercurial
4480 days ago
|
|
Python list comprehensions are not lazy, though. If you generate [for x in xrange(1, 10000)] you'll get 10000 elements in your list. My understanding is that LINQ list comprehensions are that. > I believe Python supports pattern matching other than Regex as well. That's pattern matching on strings. The kind of pattern matching being discussed here is pattern matching on data types (see [1]). 1: http://en.wikipedia.org/wiki/Pattern_matching |
|
It doesnt have functional style pattern matching though.