数组这是我迄今为止 int[] question = new int[25];
for (int i = 0; i < question.length; i++){
question[i] = i+1;
}
Random rand = new Random();
int max = question.length-1, min = 1;
for(int i = 0; i
说我有这样一个数据类型,所以: data NumCol = Empty |
Single Int |
Pair Int Int |
Lots [Int]
现在我想筛选出匹配从[NumCol]特定构造的元素。我可以写它,比如说,Pair: get_pairs :: [NumCol] -> [NumCol]
get_pairs = filter i