mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-09 00:06:42 +02:00
don't swap when i == j
This commit is contained in:
@@ -22,6 +22,8 @@ New modules/functions
|
||||
- `util/spherical_coordinate`
|
||||
- `util/every`
|
||||
- `util/some`
|
||||
- `util/swap`?
|
||||
- `util/shuffle`?
|
||||
|
||||
- delete `m_cumulate`
|
||||
- delete `trianglate`, use `tri_ear_clipping`?
|
||||
|
@@ -1,4 +1,5 @@
|
||||
function swap(lt, i, j) =
|
||||
i == j ? lt :
|
||||
let(
|
||||
leng = len(lt),
|
||||
a = min([i, j]),
|
||||
|
Reference in New Issue
Block a user