【发布时间】:2017-07-12 10:14:30
【问题描述】:
如何在 Idris REPL 中编写函数?如果我在 REPL 中键入函数定义 longer: string -> string -> string,我会收到以下错误消息:
(input):1:7: error: expected: "$",
"&&", "*", "*>", "+", "++", "-",
"->", ".", "/", "/=", "::", "<",
"<$>", "<*", "<*>", "<+>", "<<",
"<=", "<==", "<|>", "=", "==",
">", ">=", ">>", ">>=", "\\\\",
"`", "|", "||", "~=~",
ambiguous use of a left-associative operator,
ambiguous use of a non-associative operator,
ambiguous use of a right-associative operator,
end of input, function argument
longer: string -> string -> string<EOF>
^
【问题讨论】:
标签: read-eval-print-loop idris