我还在学习Clojure,似乎无法找到一个简单的答案.我已经看到类似的问题用针对OP问题的复杂代码回答,所以请让我知道以下最准确或可接受的版本:
int[][] arrayTest = new int[width][height];
...
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
int a = arrayTest[x][y];
if (a < 100) {
arrayTest[x][y] = 0;
}
}
}
Run Code Online (Sandbox Code Playgroud) clojure ×1