8 ms·Both map and filter returns an iterator, so you only iterate once when creating the list.by nitroll 9y agoBoth map and filter returns an iterator, so you only iterate once when creating the list.