doc: add package initialiser expressions to sample file

This commit is contained in:
2024-12-07 20:57:08 +00:00
parent 209c47da68
commit 7e3322e2ad

View File

@@ -132,3 +132,11 @@ x > 2
0 to:100 step:2 do:[ :i | cout put:'Count: {i}' ]. 0 to:100 step:2 do:[ :i | cout put:'Count: {i}' ].
p1 test(param:'Hello' :'World'). 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 }.