How to take lists containing exactly 2 identical elements? – mathematica.stackexchange.com

I have L which is a big list of small list as follows. L = Tuples[{a, b, c, d}, 3] I want to take only small lists containing exactly 2 identical elements, for example, {a,b,a}, {b,b,a}, {a,b,b}, ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to take lists containing exactly 2 identical elements? – mathematica.stackexchange.com"