Initial Commit
This commit is contained in:
789 files changed
+149185
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import std::io;
|
||||
def say(text: span<u8>, value: bool): bool { print(text); return value; }
|
||||
def main(): void {
|
||||
if say("a", false) && say("b", true) { print("!"); }
|
||||
if say("c", true) || say("d", true) { print("?"); }
|
||||
val both := say("e", true) && say("f", true);
|
||||
println($" {both} {true ? 1 : 2} {false ? 1.5 : 2}");
|
||||
}
|
||||
Reference in new issue
Block a user