diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-06-25 18:55:58 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-06-25 18:55:58 -0500 |
| commit | bf647e430e3a3642c8199dc81a411d5e1586cabb (patch) | |
| tree | c95a82bcaa233e1653b702d9fa7ce54ca7dd95e6 /std/stdio.sloth | |
| parent | 6a59bf6d5345fbe2487e1cc36c36aa6884fcc39d (diff) | |
| download | sloth-bf647e430e3a3642c8199dc81a411d5e1586cabb.tar.gz | |
Standard library beginnings
Diffstat (limited to 'std/stdio.sloth')
| -rw-r--r-- | std/stdio.sloth | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/std/stdio.sloth b/std/stdio.sloth new file mode 100644 index 0000000..c28d474 --- /dev/null +++ b/std/stdio.sloth @@ -0,0 +1,9 @@ +foreign fn print(str: String) Void; +foreign fn readln() String; + +fn println(str: String) Void { + print(str); + print("\n"); +} + + |
