Libraries
## Libraries
A script that starts with `library("name")` is a library: functions, methods, types and enums that other scripts
import; it has no plots, inputs or top-level code. `export` in front of a declaration makes it importable, and
every parameter of an exported function or method needs a type. Use one with
`import owner/name/version as alias` (the version is required; a username starting with a digit is quoted:
`import "4trader/levels/2" as lv`), then `alias.f(...)`, `alias.Type.new(...)`, `alias.Enum.member`, and exported
methods with the dot. Each call keeps its own ta.* state; library code sees no variables of the script. Who may
import a library is its author's setting; the library's source stays hidden.
```lynt
library("bands")
export band(float src, int len = 20, float mult = 2.0) =>
basis = ta.sma(src, len)
dev = mult * ta.stdev(src, len)
[basis + dev, basis - dev]
```