lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> partitions(tonumber(...))

A "feature" of this code is that n can be given in any base.
For instance, the partitions of 10 can be found with
	lua p a 16
where p is the script.

To "fix" this, use
	partitions(tonumber((...)))
but then
	lua p a 16
given this obscure message:
	lua: p:5: attempt to compare two nil values