Skip to main contentModule traits
Source - ADDER_TYPE
- ADDER_TYPE types provide a ‘+’ operator overload.
- COMPARER_TYPE
- COMPARER_TYPE types support ordering comparisons ‘<’, ‘<=’, ‘>’, ‘>=’.
- CONTAINER_TYPE
- CONTAINER_TYPE types support ‘in’ operations.
- DIVIDER_TYPE
- DIVIDER_TYPE types support ‘/’ operations.
- FIELD_TESTER_TYPE
- FIELD_TESTER_TYPE types support the detection of field value presence.
- FOLDABLE_TYPE
- FOLDABLE_TYPE types support comprehensions v2 macros which iterate over (key, value) pairs.
- INDEXER_TYPE
- INDEXER_TYPE types support index access with dynamic values.
- ITERABLE_TYPE
- ITERABLE_TYPE types can be iterated over in comprehensions.
- ITERATOR_TYPE
- ITERATOR_TYPE types support iterator semantics.
- MATCHER_TYPE
- MATCHER_TYPE types support pattern matching via ‘matches’ method.
- MODDER_TYPE
- MODDER_TYPE types support modulus operations ‘%’
- MULTIPLIER_TYPE
- MULTIPLIER_TYPE types support ‘*’ operations.
- NEGATOR_TYPE
- NEGATOR_TYPE types support either negation via ‘!’ or ‘-’
- RECEIVER_TYPE
- RECEIVER_TYPE types support dynamic dispatch to instance methods.
- SIZER_TYPE
- SIZER_TYPE types support the length() method.
- SUBTRACTOR_TYPE
- SUBTRACTOR_TYPE types support ‘-’ operations.