doc: add lambda and call-operator sample code
This commit is contained in:
14
doc/sample/Blocks.im
Normal file
14
doc/sample/Blocks.im
Normal file
@@ -0,0 +1,14 @@
|
||||
pkg2 = {
|
||||
onEnter => [
|
||||
cout put:'start!'
|
||||
],
|
||||
|
||||
onExit => [
|
||||
cout put:'end!'
|
||||
]
|
||||
}.
|
||||
|
||||
|
||||
x = a(x:5 y:2) + 5.
|
||||
a + b().
|
||||
a->b().
|
||||
Reference in New Issue
Block a user