I have the following two expressions that I pass to the Union
function:
Position[Divisible[Range[10], 3], True]
and
Position[Divisible[Range[10], 5], True]
You can see that they are very similar (3
and 5
is the only difference).
My question is: can I make the following command shorter
Union[
Position[Divisible[Range[10], 3], True]
,
Position[Divisible[Range[10], 5], True]
]
?