我似乎有一个困难的理解我应该如何使用clojure map
。我有一个名为in-grids
的对象列表,我不想使用方法getCoordinateSystem
。我想列表中的对象是一些Java类是很重要的。当我在clojure中直接定义函数时,map
起作用。clojure不能通过地图应用功能列表
这工作:
(.getCoordinateSystem (first in-grids))
但不是这个
(map .getCoordinateSystem in-grids)
和错误是:java.lang.RuntimeException: Unable to resolve symbol: .getCoordinateSystem in this context
我可能失去了一些东西真的很明显这里,但什么究竟?
完美的,我用了'#(%)'建造之前,但在这里忘了! – kakk11