aboutsummaryrefslogtreecommitdiff
path: root/test/corecursive_func.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
commit074cf22ad462eafe963e4a749b2b74cab51211a1 (patch)
treee1d7f938f2d949cc5dcf67ca648f200663e36562 /test/corecursive_func.tm
parent47fca946065508cff4151a32b3008c161983fd9d (diff)
Change function syntax from `func(args)->ret` to `func(args -> ret)`
Diffstat (limited to 'test/corecursive_func.tm')
-rw-r--r--test/corecursive_func.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/corecursive_func.tm b/test/corecursive_func.tm
index 168300d4..b5f5f13e 100644
--- a/test/corecursive_func.tm
+++ b/test/corecursive_func.tm
@@ -1,10 +1,10 @@
-func ping(x:Int)->[Text]:
+func ping(x:Int->[Text]):
if x > 0:
return ["ping: $x"] ++ pong(x-1)
else:
return ["ping: $x"]
-func pong(x:Int)->[Text]:
+func pong(x:Int->[Text]):
if x > 0:
return ["pong: $x"] ++ ping(x-1)
else: