Functions
A q function is delimited with open and closed curly brackets. All predefined q functions can be used in both infix or prefix notations, whereas user‐defined functions must be called using a prefix notation. Using a consistent namespace also prevents us from naming conflicts and accidentally overrid...
Gespeichert in:
Format: | Buchkapitel |
---|---|
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | A q function is delimited with open and closed curly brackets. All predefined q functions can be used in both infix or prefix notations, whereas user‐defined functions must be called using a prefix notation. Using a consistent namespace also prevents us from naming conflicts and accidentally overriding existing functions one may have. Adverbs are higher‐order functions that modify the behaviour of functions applied to lists. The verbs @ and . apply a multivariate mapping to a list of arguments, written in prefix or infix form. The chapter describes the differences between the two notations. The concept of try‐catch, or protected evaluation, is implemented with the same @ and . verbs as for the apply functions covered. The chapter presents a few more native functions which cover basic time series operations. The functions are divided into two classes: aggregators and uniform functions. The chapter concludes by summarising the conventions user‐defined functions. |
---|---|
DOI: | 10.1002/9781119404729.ch3 |