Skip to content

Reference card

Keywords

Aabs acos aj aj0 all and any asc asin asof atan attr avg avgs
Bbin binr
Cceiling cols cor cos count cov cross csv cut
Ddelete deltas desc dev differ distinct div do dsave
Eeach ej ema enlist eval except exec exit exp
Ffby fills first fkeys flip floor
Gget getenv group gtime
Hhclose hcount hdel hopen hsym
Iiasc idesc if ij ijf in insert inter inv
Kkey keys
Llast like lj ljf load log lower lsq ltime ltrim
Mmavg max maxs mcount md5 mdev med meta min mins mmax mmin mmu mod msum
Nneg next not null
Oor over
Pparse peach pj prd prds prev prior
Rrand rank ratios raze read0 read1 reciprocal reval reverse rload rotate rsave rtrim
Ssave scan scov sdev select set setenv show signum sin sqrt ss ssr string sublist sum sums sv svar system
Ttables tan til trim type
Uuj ujf ungroup union update upper upsert
Vvalue var view views vs
Wwavg where while within wj wj1 wsum
Xxasc xbar xcol xcols xdesc xexp xgroup xkey xlog xprev xrank

.Q.id (sanitize), .Q.res (reserved words)

Operators

@
.
Apply
Index
Trap
Amend
$Cond
Cast
Tok
Enumerate
Pad
mmu
!Dict
Enkey
Unkey
Enumeration
Flip Splayed
Display
internal
Update
Delete
?Find
Roll, Deal
Enum Extend
Select
Exec
Simple Exec
Vector Conditional
+Add -Subtract *Multiply %Divide
=
<>
Equals
Not Equals
<
<=
Less Than
Up To
>
>=
Greater Than
At Least
~Match
| Greater, OR & Lesser, AND
#Take
Set Attribute
_Cut
Drop
^Fill ,Join

Overloaded operator glyphs

Extenders

progressorsdistributorsdistributors
/
\
Over
Scan
/:
\:
Each Right
Each Left
'
':
':
Each
Each Parallel
Each Prior
'
'
Case
Compose

Other

\\
\
\x
'
quit
abort
system cmd
Signal
:
::
assign, return
identity
generic null

global amend
set view
0
1, -1
2, -2
n, -n
console
stdout
stderr
handle
0:
1:
2:
File Text
File Binary
Dynamic Load
()
(;)
([]…)
precedence
list
table
[;]expn block
argt list
{}
;
lambda
separator
`
`:
symbol
filepath

Attributes

`s  sorted     `u  unique
`p  parted     `g  grouped

Command-line options and system commands

file
\atables-bblocked
\b \Bviews\c -cconsole size
-C \CHTTP size\cdchange directory
\ddirectory\e -eerror traps
-ETLS Server Mode\ffunctions
\g -ggarbage collection\lload file or directory
-l -Llog sync\o -oUTC offset
\p -pmultithread port\P -Pdisplay precision
-qquiet mode\r -rreplicate
\rrename\s -sslaves
\Srandom seed\t -ttimer ticks
\tstime and space\T -Ttimeout
\u -u -Uusr-pwd-udisable syscmds
\vvariables\w -wmemory
\W -Wweek offset\xexpunge
\z -zdate format\1 \2redirect
\_hide q code\terminate
\toggle q/k\\quit

Command-line options, System commands, OS Commands, system

Datatypes

ncnameszliteralnullinfSQLJava.Net
0*list
1bboolean10bBooleanboolean
2gguid160NgUUIDGUID
4xbyte10x00Bytebyte
5hshort20h0Nh0WhsmallintShortint16
6iint40i0Ni0WiintIntegerint32
7jlong80j or 00Nj
or 0N
0Wj
or 0W
bigintLongint64
8ereal40e0Ne0WerealFloatsingle
9ffloat80.0 or 0f0n0wfloatDoubledouble
10cchar1" "" "Characterchar
11ssymbol.``varcharStringstring
12ptimestamp8dateDtimespan0Np0WpTimestampDateTime (RW)
13mmonth42000.01m0Nm
14ddate42000.01.010Nd0WddateDate
15zdatetime8dateTtime0Nz0wztimestampTimestampDateTime (RO)
16ntimespan800:00:00.0000000000Nn0WnTimespanTimeSpan
17uminute400:000Nu0Wu
18vsecond400:00:000Nv0Nv
19ttime400:00:00.0000Nt0WttimeTimeTimeSpan
20-76enums
77anymap
78-9677+t – mapped list of lists of type t
97nested sym enum
98table
99dictionary
100lambda
101unary primitive
102operator
103extender
104projection
105composition
106m'
107m/
108m\
109m':
110m/:
111m\:
112dynamic load

n: short int returned by type and used for casting, e.g. 9h$3
c: character used lower-case for casting and upper-case for Load CSV
sz: size in bytes
inf: infinity (no math on temporal types); 0Wh is 32767h
m: map
RO: read only; RW: read-write

Nested types are 77+t (e.g. 78 is boolean. 96 is time.)

Cast: char$data:CHAR$string

date.(year month week mm dd)
dict:`a`b!…
table:([]x:…;y:…) or +`x`y!…
time.(minute second mm ss)
milliseconds: time mod 1000

Namespaces

namespace contents
.h markup output for HTTP
.j de/serialize as JSON
.Q utilities: general, environment, IPC, datatype, database, partitioned database state, segmented database state, file I/O
.z system variables, callbacks