Contents
Q for Mortals
by Jeffry A. Borror
Version 4.1 November 2025
Published in HTML by Kx Systems, by permission. Please notify any errors in this edition to docs@kx.com.
- Preface
- 0. Overview
- 1. Q Shock and Awe
- 1.1 Starting q
- 1.2 Variables
- 1.3 Whitespace
- 1.4 The Q Console
- 1.5 Comments
- 1.6 Assignment
- 1.7 Order of Evaluation
- 1.8 Data Types 101
- 1.9 Lists 101
- 1.10 Functions 101
- 1.11 Functions on Lists 101
- 1.12 Example: Fibonacci Numbers
- 1.14 Example: FIFO Allocation
- 1.15 Dictionaries and Tables 101
- 1.17 Example: Trades Table
- 1.18 File I/O 101
- 1.19 Interprocess Communication101
- 1.20 Example: Asynchronous Callbacks
- 2. Basic Data Types: Atoms
- 3. Lists
- 4. Operators
- 5. Dictionaries
- 6. Functions
- 7. Transforming Data
- 8. Tables
- 9. Queries: q-sql
- 10. Execution Control
- 11. I/O
- 12. Workspace Organization
- 13. Commands and System Variables
- 14. Introduction to kdb+
- Appendix A. Built-in Functions