
samples.statements.switch-list.pec Maven / Gradle / Ivy
define main as method doing:
a = 3
switch on a:
when in [1, 3]:
printLine "a = " + a
when 17:
printLine "a = 17"
otherwise:
printLine "a = other"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy