我想在Clojure中实现这段小代码,但我遇到了困难:
struct mystruct {
int id;
int price;
};
mystruct mydata[10];
for (int i=0; i<10; i++) {
myfunction(mydata[i].id, mydata[i].price);
//other things...
}
我是Clojure的初学者,对于像这样简单的事情要做起来真的很复杂,但我真的在尽力学习,因为我知道使用Clojure有很多优势,比如使用refs等...
如果有人能帮我,我会非常感激。谢谢!