mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-16 00:20:41 +00:00
24 lines
396 B
Markdown
24 lines
396 B
Markdown
# module `repl`
|
|
|
|
provides REPL(Read-Eval-Print-Loop)-related APIs.
|
|
|
|
## functions
|
|
|
|
* `gui_help`
|
|
|
|
View information about an object in a browser. Can be used offline.
|
|
|
|
## types
|
|
|
|
### Guess = Object
|
|
|
|
#### methods
|
|
|
|
* `.guess`
|
|
|
|
Infers a function given its arguments and return value.
|
|
|
|
```python
|
|
1.guess((1,), 2) # <Int.__add__ method>
|
|
[1, 2].guess((3, 4), [1, 2, 3, 4]) # <List(T, N).concat method>
|
|
```
|