2 ms·
Example 1 makes this look like a very imperative language, otherwise why would you write out a “map” as an imperative loop? We are back to manually allocating
by dgreensp 9y ago
Example 1 makes this look like a very imperative language, otherwise why would you write out a “map” as an imperative loop? We are back to manually allocating an array the same size as an existing array, and having to remember to increment a counter at the end of a loop? I will write code like that only if there is a performance reason.