Avoid unneeded `index` var in `baseBind`.
Add `compileFunction`.
Tweak docs.