Standard Library
Zyra includes built-in primitives for string manipulation, type casting, and file system I/O.
String Functions
len(s: String): Int
Returns string length:
substr(s: String, start: Int, len: Int): String
Extracts a substring:
trim(s: String): String
Trims whitespace:
contains(s: String, sub: String): Bool
Substring search:
File System I/O
file_read(path: String): String
Reads entire file text:
file_write(path: String, content: String): Bool
Writes text to file: