neil wrote: > > > j=3D[for k in a: if k%2: k*2] # list comprehensions >=20 > Maybe I'm trapped in my past here but my "sight reading" of list > comprehensions brings back memories of BCPL which would have = propagated the > result of the loop (IIRC, the last expression evaluated within the = loop) as > the result of the expression. Its hardly obvious what this does based = on > experience with most current languages including C++, Java or VB. and my "sight reading" of this is that j is an anonymous function with a rather meaningless for-loop in it... </F>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4