Source code for tyrian.lisp_runtime.misc

from .registry import lisp_function


@lisp_function(name="return")
[docs]def return_func(arg): """ when used as the last function call in a function, its output is used as the return value for the function """ return arg
@lisp_function(name="callfunc")
[docs]def call_function(func, *args): """ helper for calling function, usually lambda functions """ return func(*args)