[OT] C# -- sharp or carp? was Re: Learning Python (or Haskell) makes you a worse programmer

Sven R. Kunze srkunze at mail.de
Tue Mar 29 06:18:02 EDT 2016


On 29.03.2016 11:39, Peter Otten wrote:
> My question to those who know a bit of C#: what is the state-of-the-art
> equivalent to
>
> "\n".join(foo.description() for foo in mylist
>                           if foo.description() != "")
>

Using LINQ, I suppose: 
https://en.wikipedia.org/wiki/Language_Integrated_Query



More information about the Python-list mailing list