aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-04-17 14:13:53 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-04-17 14:13:53 -0400
commit072bd523b97aacaf8639dd89a49f0c1a16d1d405 (patch)
tree818ee0423951a0a1cf4c7d1a9b5c4b7787b71011
parent85a7f9e1c173a3c656a325a18f8237ba1660e01c (diff)
Updated readme
-rw-r--r--README.md17
1 files changed, 14 insertions, 3 deletions
diff --git a/README.md b/README.md
index 204cce7b..2e5a9e51 100644
--- a/README.md
+++ b/README.md
@@ -7,11 +7,22 @@ the language design decisions of the future.
```
func greeting(name:Text)->Text
greeting := "hello {name}!"
- return greeting:title()
+ words := greeting:split(" ")
+ return " ":join([w:capitalize() for w in words])
func main(name="World")
- >> greeting(name)
- = "Hello World!"
+ to_say := greeting(name)
+ say(to_say)
+```
+
+```bash
+$ tomo hello.tm
+Hello World!
+$ tomo hello.tm --name=åke
+Hello Åke!
+$ tomo -e hello.tm
+$ ./hello --name="john doe"
+Hello John Doe!
```
## Features