3 ms·
If 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,
by apetrovic 7y ago
If 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.