I want to add and subtract 3 from a list.
pos = {82,84}
If[# > 3, (# - 3) && (# + 3)] & /@ pos
the output I want:
{79,85,81,87}
the output I get:
{79 && 85, 81 && 87}
I want to add and subtract 3 from a list.
pos = {82,84}
If[# > 3, (# - 3) && (# + 3)] & /@ pos
the output I want:
{79,85,81,87}
the output I get:
{79 && 85, 81 && 87}