mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
add a.fn(b) syntax to cheat sheet
This commit is contained in:
parent
bcc88bf088
commit
3f76e4f549
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user