Hello

In part of an algorithm that I am working on, there are two sets, they both have the same elements, except that one has one element more than the other. For example:

A={a,b,c}

B={a,b}

I have written two versions:

H= A - B

array1[h] = f (where h isMemberOf H)

and (h is meant to be a variable)

{h} = A - B

array1[h] = f

Is any of these notations correct? What do you advise?

Thanks in advance