mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
26 lines
939 B
Markdown
26 lines
939 B
Markdown
# module `repl`
|
|
|
|
[](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/API/modules/repl.md&commit_hash=c6eb78a44de48735213413b2a28569fdc10466d0)
|
|
|
|
provides REPL(Read-Eval-Print-Loop)-related APIs.
|
|
|
|
## functions
|
|
|
|
* `gui_help`
|
|
|
|
オブジェクトに関する情報をブラウザで表示する。オフラインでも使用可能。
|
|
|
|
## types
|
|
|
|
### Guess = Object
|
|
|
|
#### methods
|
|
|
|
* `.guess`
|
|
|
|
与えられた引数と戻り値から、関数を推測する。
|
|
|
|
```python
|
|
1.guess((1,), 2) # <Int.__add__ method>
|
|
[1, 2].guess((3, 4), [1, 2, 3, 4]) # <List(T, N).concat method>
|
|
```
|