loadLibrary

fun loadLibrary(library: Library): OutputValue<*>?

Registers a library in the context, regardless of whether it appears in loadableLibraries. The library is added to libraries and its Library.onLoad action, if any, is executed.

Return

the value returned by the library's Library.onLoad action if it exists

Parameters

library

library to register


Loads a loadable library by name and registers it in the context. After a successful load, the library is added to libraries, with its Library.onLoad action executed.

Return

the loaded library, if it exists, paired with the value returned by its Library.onLoad action if it exists

Parameters

name

name of the library to load, case-sensitive