{2,3,4}+3 delivers {5,6,7}
I'd like {2,3,4}==3 to deliver {False, True, False}, but it doesn't. Can I make it do that?
Jim Simons
Thanks guys, but I've discovered a different, and IMHO better, answer:
Thread[{2,3,4}==3]
Jim
In[2]:= Thread[{2, 3, 4} == 3]
Out[2]= {False, True, False}
Another possible way
lis = {2, 3, 4}; Outer[Equal, {3},lis] // Flatten (* {False, True, False} *)
I think that this might work:
(# == 3) & /@ {2, 3, 4}
It does appear to give the result you want.
M.
Ah, I see Frank got there 5 seconds before me!!