diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:49:40 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 16:49:40 -0400 |
| commit | e87e6dabfbdc1d35b5fe41b5d84dab38df3c8e76 (patch) | |
| tree | 93588c81392489a621ce4fcca41645c92c0d06e9 /examples/tomodeps/tomodeps.tm | |
| parent | f69f862bf6e744834d781867a85f962c783f314e (diff) | |
Insert `then` for clarity
Diffstat (limited to 'examples/tomodeps/tomodeps.tm')
| -rw-r--r-- | examples/tomodeps/tomodeps.tm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tomodeps/tomodeps.tm b/examples/tomodeps/tomodeps.tm index 1aafa6bd..1181f2be 100644 --- a/examples/tomodeps/tomodeps.tm +++ b/examples/tomodeps/tomodeps.tm @@ -74,13 +74,13 @@ func _printable_name(dep:Dependency -> Text) func _draw_tree(dep:Dependency, dependencies:{Dependency=|Dependency|}, already_printed:@|Dependency|, prefix="", is_last=yes) if already_printed.has(dep) - say(prefix ++ (if is_last "└── " else "├── ") ++ _printable_name(dep) ++ " $\x1b[2m(recursive)$\x1b[m") + say(prefix ++ (if is_last then "└── " else "├── ") ++ _printable_name(dep) ++ " $\x1b[2m(recursive)$\x1b[m") return - say(prefix ++ (if is_last "└── " else "├── ") ++ _printable_name(dep)) + say(prefix ++ (if is_last then "└── " else "├── ") ++ _printable_name(dep)) already_printed.add(dep) - child_prefix := prefix ++ (if is_last " " else "│ ") + child_prefix := prefix ++ (if is_last then " " else "│ ") children := dependencies[dep] or || for i,child in children.items |
