Is there a faster way to test for membership in an
Internal`Bag other than unpacking the whole thing like this?
MemberQ[Internal`BagPart[b, All], elem]
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community