I have 2 lists of numbers A = Range[16, 65]
and B = Range[10, 16]
. I want to form all possible combinations $(a,b)$ of the elements in those lists such that $a - b > 5$. I can get what I want with:
Tuples[{A, B}] /. {a_, b_} /; a - b <= 5 -> Nothing
How can I get the same list using Table
?
Table[]
withIf[]
andNothing
ought to do it. $\endgroup$ – J. M.'s ennui♦ Jul 25 '16 at 1:42