4 ms·
Is there a way to simplify the `swap` function? E.g. in JavaScript it is just swap = (x,y,...rest) => [y,x,...rest]
by dmitriz 7y ago
Is there a way to simplify the `swap` function?
E.g. in JavaScript it is just
swap = (x,y,...rest) => [y,x,...rest]