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