3 ms·
I briefly looked at Swift. C# examples can be just as short if you use the underlying .select, .where etc. instead of the Linq DSL
by dmitriid 7y ago
I briefly looked at Swift. C# examples can be just as short if you use the underlying .select, .where etc. instead of the Linq DSL
- apetrovic 7y agoIf I'm not mistaken (I didn't worked in Swift for a while) Swift doesn't have proper generators. For each projection or filtering Swift will create a new array, while C#/Linq will use generators to make one really long state machine that saves memory.