#Mathematica, 61 bytes
Mathematica, 61 bytes
f[d_,l_]:=NullSpace[IntegerDigits[#,2,d]&/@l,Modulus->2][[1]]
This gives a bitmask (well a list of zeros and ones) of which elements of the list are in the set, as was allowed by the OP.
#Mathematica, 61 bytes
f[d_,l_]:=NullSpace[IntegerDigits[#,2,d]&/@l,Modulus->2][[1]]
This gives a bitmask (well a list of zeros and ones) of which elements of the list are in the set, as was allowed by the OP.
Mathematica, 61 bytes
f[d_,l_]:=NullSpace[IntegerDigits[#,2,d]&/@l,Modulus->2][[1]]
This gives a bitmask (well a list of zeros and ones) of which elements of the list are in the set, as was allowed by the OP.
#Mathematica, 61 bytes
f[d_,l_]:=NullSpace[IntegerDigits[#,2,d]&/@l,Modulus->2][[1]]
This gives a bitmask (well a list of zeros and ones) of which elements of the list are in the set, as was allowed by the OP.