test if an expression is a member of a MultiSet
member( x, M )
x in M
MultiSet; a MultiSet
anything, an expression
member( x, M ) returns true if x is a member of the MultiSet M, false otherwise
Note: member( x, M ) is equivalent to evalb( x in M ) and also equivalent to evalb( M[x] <> 0 ).
Note: As a MultiSet is unordered, attempting to use the three-argument form of the member command, as in member( x, M, 'k' ) will result in an error.
M ≔ MultiSet⁡a=2,b=5
Error, index of member is undefined
The MultiSet/member command was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
Download Help Document