Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Expressions > In operator

In operator

The In operator (``in´´) tests if a given element is a member of a given set. This operation returns boolean, but the actual behaviour depends on the type of set. There is callback ``_in(element)´´ for classes, invoked with this expression. Negation of this (``!in´´) operation uses the same callback with a negation of the return value.

  in-expr := exprelement "in" exprset 
  in-expr := exprelement "!" "in" exprset 
See also  | Expressions  | Grammar
Contributes notes:
Add a note
What's new | Anvil