algorithmic modeling for Rhino
Hi everyone,
I'd like to ask for help on the following problem. I have a set of 4 digit numbers stored in a list, and i was wondering if there is a way to retrieve certain numbers if it uses the same combination of digits within it?
For example, the number '0011' would be grouped with:
1001
0110
1100
0101
1010
etc.
Basically, the new list would retrieve every number which has two '1' digits & two '0' digits.
Any help would be greatly appreciated.
Cheers,
Alex
Tags:
Thanks for your suggestions Rhydro & Danny.
Rhydro, your method works for numbers that use two types of digits, but I start running into problems when i go on to using more types of digits (E.g. 0123 can be grouped with 0006).
Danny, I used your definition and it works perfectly!
Thanks again for your suggestions!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by