4 ms·
Or in IronPython: currentNetTypes = sorted( sum( list(asm.getExportedTypes()) for asm in System.AppDomain.CurrentDomain.GetAssemblies() if
by daeken 16y ago
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.