I am just using the math combinatorics library and spent some time
debugging until I found out that combinations does not accept n=1. Is this
intentional?
*=> (clojure.math.combinatorics/combinations #{1 2 3 4} 1)*
*UnsupportedOperationException nth not supported on this type:
Persistent
;t work on
> sets).
>
> On Wed, Mar 23, 2016 at 3:45 PM, Matthias Grabmair > wrote:
>
>> I am just using the math combinatorics library and spent some time
>> debugging until I found out that combinations does not accept n=1. Is this
>> intentional?
>>
nct-issues with sets yet there is
little reason to complicate it. The nth-not-supported-on-hash-set exception
is not too informative, though.
On Wednesday, March 23, 2016 at 11:36:15 PM UTC-4, puzzler wrote:
>
> On Wed, Mar 23, 2016 at 7:05 PM, Matthias Grabmair > wrote:
>
&g