6 ms·
given it looks state mutating, I'd write this something like walruses.apply(condition ? frobnicate : transmorfify) where apply does the looping.
by keithnz 3y ago
given it looks state mutating, I'd write this something like
walruses.apply(condition ? frobnicate : transmorfify)
where apply does the looping.