Tiny package manager: copy a bundled library from
lib/ into
.spl_packages/<name>/ under the
working directory, then load it. Named
pkg.load because
use is reserved for imports.
pkg.install("newMath");
pkg.load("newMath");
print.list(pkg.list());
pkg.install(name) — copy bundled lib into .spl_packages/.pkg.load(name) — run the package’s main .spl file.pkg.list() — installed package directory names.
Prefer plain use newMath; when the library
already lives on the import path. Use pkg
when you want a project-local copy under
.spl_packages/.