1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/tests/positive/Builtins.juvix
Łukasz Czajka 4be4d58d30
String builtins (#1784)
- Progress for #1742 
* Adds builtin primitives for operations on strings and removes the
corresponding foreign & compile blocks.
2023-01-31 18:31:04 +01:00

10 lines
197 B
Plaintext

module Builtins;
open import Stdlib.Prelude;
f : String -> IO;
f s := printStringLn (natToString (stringToNat "290" + 3) ++str natToString 7 ++str s);
main : IO;
main := readLn f;
end;