mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-18 12:31:17 +02:00
re-org var
This commit is contained in:
@@ -1,16 +1,14 @@
|
||||
function m_replace(m, x, y, value) =
|
||||
let(
|
||||
rowY = m[y],
|
||||
leng_rowY = len(rowY),
|
||||
newRowY = [
|
||||
for(i = [0:leng_rowY - 1])
|
||||
for(i = [0:len(rowY) - 1])
|
||||
if(i == x) value
|
||||
else rowY[i]
|
||||
],
|
||||
row_leng = len(m)
|
||||
]
|
||||
)
|
||||
[
|
||||
for(i = [0:row_leng - 1])
|
||||
for(i = [0:len(m) - 1])
|
||||
if(i == y) newRowY
|
||||
else m[i]
|
||||
];
|
||||
|
Reference in New Issue
Block a user