From 7e3322e2ad4dfa4029c5c334fe71d10700bd9d14 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 7 Dec 2024 20:57:08 +0000 Subject: [PATCH] doc: add package initialiser expressions to sample file --- doc/sample/Expressions.im | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/sample/Expressions.im b/doc/sample/Expressions.im index 6826701..9bb9911 100644 --- a/doc/sample/Expressions.im +++ b/doc/sample/Expressions.im @@ -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 }. \ No newline at end of file