Prelude
All variables from this module are automatically in all modules
-
print(value)
Prints
value
-
eval(source)
Evaluates expression
source
in the context of the current module and returns it. ThrowsTypeError
ifsource
is not a string andCompileError
if there is a compile error.Example:
eval('1+1') //2
-
exec(source)
Executes expression
source
in the context of the current module. ThrowsTypeError
ifsource
is not a string andCompileError
ifsource
could not be compiledExample:
eval('1+1') //2
-
spawn(fn)
Spawns a new task with the function
fn
and returns the created task -
spawn_link(fn)
Spawns a new task with the function
fn
which is linked with the current task and returns the created task. -
join(tasks)
Waits for each task in
tasks
to complete. If any one task is killed, all tasks intasks
are killed and the error with which that task was killed is thrown.