Infix Notation

Question: Infix notation is characterized by the placement of operators between operands, ex. '2+2'. Functions cannot be used infix, unless they are defined in the .q namespace. Define a function 'add' that takes in two arguments and adds them, and enable your function to be used infix.

More Information:


                                q)1 2 3 add 3 4 5
4 6 8
q)1 add 3


Searchable Tags
algorithms api architecture asynchronous c csv data structures dictionaries disk feedhandler finance functions ingestion ipc iterators machine learning math multithreading optimizations realtime shared library sql statistics streaming strings tables temporal utility websockets