> function pickle (x)
> ...
> return format ("%q", x)
> --
>
> That should be "string.format", I believe.
Indeed. Another one I haven't tested since moving to Lua 5.
> function round(x, n_digits)
> local p_10 = 10 ^ n_digits
> return math.floor(x * p_10 + 0.5) / p_10
> end
Great.
> as well as second the trim, rtrim, ltrim, and join functions for
> inclusion eventually.
Noted.
> I've written implementations for most of the Common Lisp sequence
> functions, using a final table argument to pass the keyword arguments,
> if anyone is interested.
I suspect that would be good, but to be really good it would be integrated
with the existing list and table functions.
In general I don't want to just amass a whole pile of code, but a small
pile with rich functionality.
--
http://www.mupsych.org/~rrt/ | certain, a. insufficiently analysed
|