Question: indets for repetitive patterns

Hello

Given following list:

vec := [[`@`(1, {.34}), `@`(2, {.4})], [[], 1], [[], 2], 3];

Applying the indets function to vec[1] yields

indets(vec[1], numeric);
              {1, 2, 0.34, .4}

Given a list where we have identical elements (in this case the floats)


vec := [[`@`(1, {.4}), `@`(2, {.4})], [[], 1], [[], 2], 3];

The following yields

indets(vec[1], numeric);
                  {1, 2, .4}

indets returns 0.4 as single entry in the output list. But I need it to be:

{1, 2, .4, .4}

How can this be achieved?

Please Wait...