erg/doc/zh_CN/tools/repl.md
2023-02-08 20:28:17 +08:00

801 B

REPL

badge

运行不带参数的 erg 命令会调用 REPL。它也可以用 repl 子命令调用 此外,您可以指定以下标志:

  • show-type: 显示对象及其类型
$ erg repl --show-type
Erg interpreter ... (tags/?:, ...) on ...
>>> 1
1: {1}
>>> id x = x
id = <function id>: |T: Type| T -> T