Useful short lua functions (lists, csv, stats, rand, tests)

$ luarocks install kah

KAH: one file, ~50 short Lua functions that recur across the
author's Lua projects:

- kist ops (push, map, kap, keysort, slice, argmin, copy, deepCopy)
- string coercion and pretty-print (thing, o),
- csv streaming,
- incremental stats (welford, sd, ent, mode, bisect, cliffsDelta, ks, sames, topTier),
- a confusion matrix (Confuse),
- a portable seeded PRNG,
- a one-line metatable OO binder,
- and a tiny test harness (chk, run1, main).

Run `lua kah.lua --all` for the self-test/demo suite.

Versions

1.0.0-116 days ago0 downloads
0.1-01 year ago13 downloads

Dependencies

lua >= 5.3

Labels

Manifests