diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 14:44:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 14:44:15 -0400 |
| commit | f4b04a1b8cd882e25fee592c819650c9b7e8566b (patch) | |
| tree | dcecb8b4f83d569ebb00beb79988222d195b8f4c /test/corecursive_func.tm | |
| parent | 04603308af3a2984d42eaa9e301cac0ffbded2a4 (diff) | |
Improved syntax for dollar-string literals
Diffstat (limited to 'test/corecursive_func.tm')
| -rw-r--r-- | test/corecursive_func.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/corecursive_func.tm b/test/corecursive_func.tm index a5c13dde..168300d4 100644 --- a/test/corecursive_func.tm +++ b/test/corecursive_func.tm @@ -1,14 +1,14 @@ func ping(x:Int)->[Text]: if x > 0: - return ["ping: {x}"] ++ pong(x-1) + return ["ping: $x"] ++ pong(x-1) else: - return ["ping: {x}"] + return ["ping: $x"] func pong(x:Int)->[Text]: if x > 0: - return ["pong: {x}"] ++ ping(x-1) + return ["pong: $x"] ++ ping(x-1) else: - return ["pong: {x}"] + return ["pong: $x"] func main(): >> ping(3) |
