erg/doc/zh_TW/tools/repl.md
2023-02-07 20:03:22 +09: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