相关疑难解决方法(0)

匿名函数在clojure中期望有多少个参数?

Clojure如何确定匿名函数(使用#...符号创建)期望的参数数量?

user=> (#(identity [2]) 14)
java.lang.IllegalArgumentException: Wrong number of args (1) passed to: user$eval3745$fn (NO_SOURCE_FILE:0)
Run Code Online (Sandbox Code Playgroud)

arguments clojure anonymous-function

20
推荐指数
3
解决办法
6106
查看次数

标签 统计

anonymous-function ×1

arguments ×1

clojure ×1