Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitCommands = []string{
`(def! not (fn* (a) (if a false true)))`,
`(def! load-file (fn* (f) (eval (read-string (str "(do " (slurp f) "\nnil)")))))`,
}
InitCommands contain mal commands to be executed in sequence during initialization
View Source
var NameSpace = map[string]types.MalFunction{
"+": add,
"-": sub,
"*": mul,
"/": div,
"pr-str": strReadable,
"str": strUnreadable,
"prn": printReadable,
"println": printUnreadable,
"read-string": readString,
"slurp": slurp,
"list": createList,
"list?": isList,
"empty?": isEmptyList,
"count": getListSize,
"=": isEqual,
"<": isLess,
"<=": isLessEqual,
">": isGreater,
">=": isGreaterEqual,
}
NameSpace is the initial namespace for mal
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.