使用start-with?功能

时间:2016-02-17 06:41:14

标签: clojure

我正在尝试这里显示的函数(starts-with?):https://clojure.github.io/clojure/clojure.string-api.html当我尝试使用它时,我收到Unable to resolve symbol: starts-with? in this context错误消息。我通过指定:dependencies [[org.clojure/clojure "1.8.0"]]来修改我的项目依赖项,但这似乎没有帮助。

1 个答案:

答案 0 :(得分:7)

您可能忘记了要求命名空间?请参阅以下示例:

if (name[y].compareTo(name[y+1]) > 0 )