diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 22:45:02 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 22:45:02 -0400 |
| commit | 44cd26f2cebd760a53aa4ff1b7779e718a101650 (patch) | |
| tree | 4bdc9144c6825a0c394155712d5e464ee2a61061 /test/optionals.tm | |
| parent | 3406515a44b13d0c290c28ac42bd364ce27560c7 (diff) | |
Rename Array -> List in all code and docs
Diffstat (limited to 'test/optionals.tm')
| -rw-r--r-- | test/optionals.tm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/optionals.tm b/test/optionals.tm index 36f38625..50e700f1 100644 --- a/test/optionals.tm +++ b/test/optionals.tm @@ -25,7 +25,7 @@ func maybe_int64(should_i:Bool->Int64?) else return none -func maybe_array(should_i:Bool->[Int]?) +func maybe_list(should_i:Bool->[Int]?) if should_i return [10, 20, 30] else @@ -114,10 +114,10 @@ func main() else say("Falsey: $nope") do - say("Arrays:") - >> yep := maybe_array(yes) + say("Lists:") + >> yep := maybe_list(yes) = [10, 20, 30]? - >> nope := maybe_array(no) + >> nope := maybe_list(no) = none >> if yep >> yep |
