News for hackers. Stuff that matters.
Re:Longest and Shortest Type Name in .NET 4.0 using LINQ by daeken on Saturday August 14, 2010 @02:27PM (#1603766)
Or in IronPython:

  currentNetTypes = sorted(
  		sum(
  			list(asm.getExportedTypes())
  			for asm in System.AppDomain.CurrentDomain.GetAssemblies()
  			if 'Version=4.0.0.0' in asm.FullName), 
  		lambda a, b: cmp(len(a.Name), len(b.Name))
  	)
Clean, but I love how the |> operator in F# serves to flatten code like this.

There are no comments on this comment yet.