4 ms·
always mapv when doing I/O on the backend and always extra vec when returning sequences in the frontend
by serpix 9y ago
always mapv when doing I/O on the backend and always extra vec when returning sequences in the frontend
- joncampbelldev 9y agorun! and doseq are for IO on each element of a sequence. Functions like mapv are intended for data transformation, not side-effects. This is why run! and doseq return nil
- djtango 9y agoI don't often find myself doing sequential side effects so often anymore, but when I do doseq has been my go to, though I will confess I didn't know about run! until this thread.