Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
use <util/swap.scad>
module test_swap() {
echo("==== test_swap ====");
assert(swap([10, 20, 30, 40], 1, 3) == [10, 40, 30, 20]);
}
test_swap();bb33edfd7This file is pinned to the selected release. Download the original to open it in your design tool.