test a data structure, function, or module for a given type
membertype(x, s, 'p')
set, list, table, function, or module
(optional) an unevaluated name
The membertype(x, s) function determines if there is an operand within the expression s of type x. Given a module, it determines if there is an assigned export of type x. If so, it returns true, and false otherwise.
If a third argument 'p' is present and membertype yields true, then the position of the first x in s is assigned to p in the case of sets and lists, whereas the member instance is assigned to the name p if s is a module.
Check whether either of the following sets contains an integer.
Check whether any of the three elements of this list is a product.
Check whether this unevaluated function call has a symbol among its operands.
Search the exports of this module for one assigned to an integer.
m ≔ module_export⁡e,f,g;e ≔ 4end module:
Download Help Document
What kind of issue would you like to report? (Optional)