mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-11 01:56:51 +01:00
fixed small issue in readme
This commit is contained in:
@@ -209,7 +209,7 @@ You have to cover `[]/int` because the condition in the loop might not match for
|
|||||||
### Let's read a file!
|
### Let's read a file!
|
||||||
|
|
||||||
file = fs_read(&args.get(0).assume1("please provided a text file to read!"))
|
file = fs_read(&args.get(0).assume1("please provided a text file to read!"))
|
||||||
switch! {}
|
switch! file {}
|
||||||
|
|
||||||
Since `get()` can fail, it returns `[]/[t]` where t is the type of elements in the list. To avoid handling the `[]` case, the `assume1()` builtin takes a `[]/[t]` and returns `t`. If the value is `[]`, it will cause a crash.
|
Since `get()` can fail, it returns `[]/[t]` where t is the type of elements in the list. To avoid handling the `[]` case, the `assume1()` builtin takes a `[]/[t]` and returns `t`. If the value is `[]`, it will cause a crash.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user