mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 05:11:09 +00:00
12 lines
373 B
Markdown
12 lines
373 B
Markdown
# Procedures
|
|
|
|
Procedures are necessary when dealing with mutable objects, but having a mutable object as an argument does not necessarily make it a procedure.
|
|
Here is a function takes a mutable object (not procedure).
|
|
|
|
```python
|
|
peek_str s: Str! = log s
|
|
```
|
|
|
|
<p align='center'>
|
|
<a href='./07_side_effect.md'>Previous</a> | <a href='./09_builtin_procs.md'>Next</a>
|
|
</p>
|