12 lines
No EOL
242 B
Text
12 lines
No EOL
242 B
Text
def cheap(field x) -> field:
|
|
return x + 1
|
|
|
|
def expensive(field x) -> field:
|
|
return x**1000
|
|
|
|
def main(field x) -> field:
|
|
return if x == 1 then\
|
|
cheap(x)\// executed
|
|
else\
|
|
expensive(x)\// also executed
|
|
fi |