doc: add package initialiser expressions to sample file
This commit is contained in:
@@ -132,3 +132,11 @@ x > 2
|
||||
0 to:100 step:2 do:[ :i | cout put:'Count: {i}' ].
|
||||
|
||||
p1 test(param:'Hello' :'World').
|
||||
|
||||
pkg = {}.
|
||||
pkg = { 0 }.
|
||||
pkg = { 1, 2, 3, 4, 5 }.
|
||||
pkg = { 10, 2 => "Hello", 9, 5 => "World", 14 }.
|
||||
pkg = { { 0 }, { 1 }, { y for y in huh } }.
|
||||
|
||||
pkg = { x for x in wow if x > 2 }.
|
||||
Reference in New Issue
Block a user