【发布时间】:2018-10-15 16:25:52
【问题描述】:
我正在尝试在 Clojure 中创建一个简单的输入循环。我们的想法是像这样读取一行文本:
> look
You see nothing, as this game hasn't actually been written.
我用来尝试的方法如下:
(defn get-input []
(print "> ")
(string/trim-newline (read-line)))
但是,输入循环看起来像这样:
look
> You see nothing, as this game hasn't actually been written.
如何在用户输入之前而不是之后打印角度引用?
【问题讨论】:
标签: clojure