Generics Patterns¶
A type constraint determines which operations you can use on a value in generic code. To XOR two values of type T, for example, you need a constraint that lets you pass a T as the operand. See Generic Numeric Code.
A type constraint determines which operations you can use on a value in generic code. To XOR two values of type T, for example, you need a constraint that lets you pass a T as the operand. See Generic Numeric Code.