diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:07:23 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:07:23 -0400 |
| commit | 6782cc5570e194791ca6cdd695b88897e9145564 (patch) | |
| tree | a428e9d954aca251212ec1cf15bd35e0badce630 /test/corecursive_func.tm | |
| parent | 448e805293989b06e07878a4a87fdd378f7c6e02 (diff) | |
No more colons for blocks
Diffstat (limited to 'test/corecursive_func.tm')
| -rw-r--r-- | test/corecursive_func.tm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/corecursive_func.tm b/test/corecursive_func.tm index b5f5f13e..8faf8b0d 100644 --- a/test/corecursive_func.tm +++ b/test/corecursive_func.tm @@ -1,15 +1,15 @@ -func ping(x:Int->[Text]): - if x > 0: +func ping(x:Int->[Text]) + if x > 0 return ["ping: $x"] ++ pong(x-1) - else: + else return ["ping: $x"] -func pong(x:Int->[Text]): - if x > 0: +func pong(x:Int->[Text]) + if x > 0 return ["pong: $x"] ++ ping(x-1) - else: + else return ["pong: $x"] -func main(): +func main() >> ping(3) = ["ping: 3", "pong: 2", "ping: 1", "pong: 0"] |
