61890b15cb
* wip * move print and JSON functions to modules * builtin functions are not replacable now * builtin functions are added for default nil symbol table * importables: builtin modules and source modules * refactoring runtime tests * fix tests * update documentation * cleanup * clean up cli * fix REPL prints
786 B
786 B
Module - "fmt"
fmt := import("fmt")
Functions
print(args...)
: Prints a string representation of the given variable to the standard output. Unlike Go'sfmt.Print
function, no spaces are added between the operands.println(args...)
: Prints a string representation of the given variable to the standard output with a newline appended. Unlike Go'sfmt.Println
function, no spaces are added between the operands.printf(format, args...)
: Prints a formatted string to the standard output. It does not append the newline character at the end. The first argument must a String object. It's same as Go'sfmt.Printf
.sprintf(format, args...)
: Returns a formatted string. The first argument must be a String object. It's the same as Go'sfmt.Sprintf
.