clojure.math.combinatorics/combinations throws exception on n=1

2016-03-23 Thread Matthias Grabmair
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

Re: clojure.math.combinatorics/combinations throws exception on n=1

2016-03-23 Thread Matthias Grabmair
;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? >>

Re: clojure.math.combinatorics/combinations throws exception on n=1

2016-03-26 Thread Matthias Grabmair
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