WLJS LogoWLJS Notebook

OperationDeclaration

OperationDeclaration[type, op, typedfun] declares a typed function to be used for the operation op of type.

Examples

Declare an operation for a custom type:

OperationDeclaration["MyType", Plus, myPlusFunction]

Register a compiled function for an operation:

OperationDeclaration[type, Times, compiledMultiply]

Please visit the official Wolfram Language Reference for more details.

On this page