Quantcast
Channel: Grasshopper - McNeel Forum
Viewing all articles
Browse latest Browse all 39494

How to obtain combinations and permutations of elements

$
0
0

@Pietro_Pedone wrote:

Hello everyone!
A simply put questions: starting from this

A A B B

how can you obtain these?

AABB BBAA ABBA BAAB ABAB BABA

I’m trying to obtain k-combinations and k-permutations directly in Grasshopper, any input would be highly appreciated.
I already figured out how to delete duplicate entries, so if your method gives back things like
AA BB and A A BB
as two different things, it’s perfectly fine for me.

Thank you in advance!

P

Posts: 8

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 39494

Trending Articles