Find index of an element matching a predicate in Clojure?

前端 未结 0 1150
悲哀的现实
悲哀的现实 2021-02-11 21:38

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

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