Find index of an element matching a predicate in Clojure?

前端 未结 0 1254
遇见更好的自我
遇见更好的自我 2021-02-11 21:16

With Clojure, how do I find the first index with a positive value in this vector [-1 0 3 7 9]?

I know you can get the first result of something rather elega

相关标签:
回答
  • 消灭零回复
提交回复
热议问题