Oh, I fully agree. I was more interested in the benchmark result. I really expected map to be much more expensive than slicing so I was rather surprised by the result. The result holds good for arrays of at least 100_000 elements.
In reply to Re^3: Reordering Arrays?
by GrandFather
in thread Reordering Arrays?
by willyyam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |