- Introduction
- Platform
- Tutorial
- Language reference
- Verbs
- Iterators
- Queries
- Dynamic parsers
- Language idioms
- Standard library
- Plugins
- For Python developers
- For KDB+ developers
- Application examples
- FAQ
Dyadic defn
Dynamically defines a function.
Syntax: <x> defn <y>
; defn[<x>; <y>]
whеre x
is a symbol vector with argument names, and y
is a list of expressions.
o)f:defn[`a`b;,(+;`a;`b)]
{[`a`b]((+;a;b))}
o)f[1;2]
3
o)