diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 19:34:07 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-18 19:34:07 -0400 |
| commit | d705355fc95f85619b5f1299f0e95145e8165107 (patch) | |
| tree | 37aaa14b730549f23119d49a905f808c28c4623e | |
| parent | 46e0d88e88b5875881dff3f12de52d5dbe98cc78 (diff) | |
Update docs
| -rw-r--r-- | api/booleans.md | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/api/booleans.md b/api/booleans.md index 86473b42..7d2c29a4 100644 --- a/api/booleans.md +++ b/api/booleans.md @@ -29,9 +29,15 @@ from_text(text: Text, success: Bool = !&Bool) -> Bool **Example:** ```tomo -Boo.from_text("yes") // yes -from_text("no") // no -from_text("maybe") // !&Bool (default value) +>> Bool.from_text("yes") += yes +>> Bool.from_text("no") += no +>> success := yes +>> Bool.from_text("???", &success) += no +>> success += no ``` --- @@ -55,6 +61,5 @@ random(p: Float = 0.5) -> Bool **Example:** ```tomo -random(0.7) // yes (with 70% probability) -random(0.3) // no (with 70% probability) +>> Bool.random(70%) // yes (with 70% probability) ``` |
