Counting the number within a domain

I have a set of numbers that needed to know which domain they will be incuded and count the length of that numbers in each domain even if it is zero.

Sample script is in the photo below.

Sorry can t post the gh file.

Hello. I may have a better way to do this,
Dictionary.gh (9.0 KB)

2 Likes

Thank you for responding.

1 Like

you can also replace the Create Set component (where indexes of Domains that do not contain any value do not appear) with a List Length + Serie + Int, in order to generate also those values, and use the Count output of Member Index:


Count_Values_in_Domain.gh (15.7 KB)

4 Likes

Hi,inno.
That’s a very good way!

1 Like