add a.fn(b) syntax to cheat sheet

This commit is contained in:
mark 2023-05-25 00:25:50 +02:00
parent bcc88bf088
commit 3f76e4f549

View File

@ -75,6 +75,8 @@
+ `<var_name>` (if the name of the variable isn't a value or some other kind of statement) + `<var_name>` (if the name of the variable isn't a value or some other kind of statement)
- function call - function call
+ `<fn_name>(<arg1> <arg2> <...>)` + `<fn_name>(<arg1> <arg2> <...>)`
+ `<fn_name>(<arg1>, <arg2>, <...>)`
+ `<arg1>.<fn_name>(<arg2>, <...>)`
- function definition - function definition
+ `fn <fn_name>(<arg1> <arg2> <...>) <statement>` where `<argn>` is `<namen> <typen>` + `fn <fn_name>(<arg1> <arg2> <...>) <statement>` where `<argn>` is `<namen> <typen>`
- block - block