3 ms·
> Function chaining as most people write is awful for performance because it involves creating a separate array for each step in the chain Not in some language
by coin 2y ago
> Function chaining as most people write is awful for performance because it involves creating a separate array for each step in the chain
Not in some languages. Clojure and Google Guava are lazy, nothing is created, only transformed and only as needed. Swift has lazy but it doesn't default to lazy.