[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A question about the implement the Integer Partitions
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 29 Dec 2009 12:32:56 -0200
> 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