Hacker News new | ask | show | jobs
by rnnr 4480 days ago
Python does have generator expressions, for instance what you wrote above is written (lazily) as:(x for x in xrange(1, 10000))

It doesnt have functional style pattern matching though.