<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent activity in math.combinatorics</title>
<link>https://ask.clojure.org/index.php/activity/contrib-libs/math-combinatorics</link>
<description></description>
<item>
<title>Retagged: clojure.math.combinatorics/partitions can throw error with duplicate items and :min &amp; :max args</title>
<link>https://ask.clojure.org/index.php/12673/clojure-combinatorics-partitions-throw-error-duplicate-items?show=12673#q12673</link>
<description>&lt;p&gt;When called with some duplicate items in &lt;code&gt;items&lt;/code&gt; and with a &lt;code&gt;:min&lt;/code&gt; &amp;amp; &lt;code&gt;:max&lt;/code&gt; supplied, &lt;code&gt;clojure.math.combinatorics/partitions&lt;/code&gt; can throw an &lt;code&gt;IndexOutOfBoundsException&lt;/code&gt;. For example:&lt;br&gt;
&lt;code&gt;(dorun (clojure.math.combinatorics/partitions [1 1 2 3 4 5] :min 5 :max 5))
Execution error (IndexOutOfBoundsException) at clojure.math.combinatorics/m5$fn (combinatorics.cljc:859).&lt;/code&gt;&lt;br&gt;
I can't replicate this when &lt;code&gt;items&lt;/code&gt; doesn't include at least one duplicate, nor can I replicate it when &lt;code&gt;:min&lt;/code&gt; isn't at least &lt;code&gt;5&lt;/code&gt;. I think &lt;code&gt;:max&lt;/code&gt; has to be supplied, but doesn't always have to be equal to &lt;code&gt;:min&lt;/code&gt;.&lt;br&gt;
It happens with non-number items, and regardless of the order of &lt;code&gt;items&lt;/code&gt;. It seems that it occurs when the first item is duplicated, but not for the other items.&lt;/p&gt;
</description>
<category>math.combinatorics</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/12673/clojure-combinatorics-partitions-throw-error-duplicate-items?show=12673#q12673</guid>
<pubDate>Wed, 01 Mar 2023 16:37:40 +0000</pubDate>
</item>
<item>
<title>Answered: Better support for sets</title>
<link>https://ask.clojure.org/index.php/7571/better-support-for-sets?show=7575#a7575</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/MCOMB-8&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/MCOMB-8&lt;/a&gt; (reported by glchapman)</description>
<category>math.combinatorics</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7571/better-support-for-sets?show=7575#a7575</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: Allow maps as multi-sets</title>
<link>https://ask.clojure.org/index.php/7570/allow-maps-as-multi-sets?show=7574#a7574</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/MCOMB-10&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/MCOMB-10&lt;/a&gt; (reported by tmulvaney)</description>
<category>math.combinatorics</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7570/allow-maps-as-multi-sets?show=7574#a7574</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: Support ClojureScript by converting from CLJ to CLJC</title>
<link>https://ask.clojure.org/index.php/7569/support-clojurescript-by-converting-from-clj-to-cljc?show=7573#a7573</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/MCOMB-6&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/MCOMB-6&lt;/a&gt; (reported by alex+import)</description>
<category>math.combinatorics</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7569/support-clojurescript-by-converting-from-clj-to-cljc?show=7573#a7573</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
<item>
<title>Answered: Please add project.clj</title>
<link>https://ask.clojure.org/index.php/7572/please-add-project-clj?show=7583#a7583</link>
<description>Reference: &lt;a href=&quot;https://clojure.atlassian.net/browse/MCOMB-3&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://clojure.atlassian.net/browse/MCOMB-3&lt;/a&gt; (reported by alex+import)</description>
<category>math.combinatorics</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/7572/please-add-project-clj?show=7583#a7583</guid>
<pubDate>Wed, 26 Jun 2019 12:00:00 +0000</pubDate>
</item>
</channel>
</rss>