4 ms·
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
by rnnr 13y 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.