+ 6

What other languages except Python support list comprehension?

It took me a while, but I now realised why I absolutely love Python, its due to list comprehension. The satisfaction from making something complex happen by writing a simple sentence is incredible. Hence my question. Ive done all 12 courses in Sololearn, but that does not mean I know them. It took me alot of tinkering in Python to firstly become aware and secondly to become comfortable with list comprehension.

18th Mar 2018, 2:40 PM
Louis
Louis - avatar
3 Answers
+ 4
{ *whispers* "C#" *Fades* }
18th Mar 2018, 2:45 PM
Bishal Poonia (Bishu)
Bishal Poonia (Bishu) - avatar
18th Mar 2018, 3:22 PM
Louis
Louis - avatar
+ 4
I did google few mins ago and found this: http://preshing.com/20141202/cpp-has-become-more-pythonic/ my search was "List comprehension in C++"
18th Mar 2018, 3:34 PM
Bishal Poonia (Bishu)
Bishal Poonia (Bishu) - avatar