The Crow Programming Language

Crow by Example

One short, runnable program per area of the language. The chapters taught the ideas; this is every corner of the language and its modules in example form, to read through once and come back to. Every block is executed by crow test --book in both execution modes, and crow test --docs fails the build if any builtin or module has no example here or in the chapters. For the tables, with every function linked back to the example that shows it, see The Standard Library in Part II.

PageCovers
Numbers and conversionabs sqrt floor ceil round min max type int float str
Stringstrim upper lower replace starts ends repeat split join reverse len, indexing
Formattingfmt with decimals commas percent width fill align
Regular expressionsmatches find sub
Arrayssort reverse slice push pop concat contains range
Mapsmap keys values has set del
Files and directoriesmkdir write exists read cp mv ls rm, error values from I/O
JSONjson encode, converting open-schema fields
The system: shell, environment, time, argumentsshell env time args hash
Moments and freshnessmoment calendar parse_time now captured, fmt[t, time =]
Math: tensorscreating tensors, element-wise functions, shape operations
Math: reductions and linear algebrasum mean min max argmax cumsum sort argsort topk unique where, solve inv det svd qr eigen norm dot lstsq
Math: random, signal, special, and sparseseed rand randn normal shuffle choice, fft conv hamming stft lowpass, gamma erf bessel complex, sparse dense nnz spmv
Automatic differentiationgrad for one and many parameters
Statistics: use math.statsmedian std var percentile corr linreg
Neural-network building blocks: use math.nnrelu sigmoid softmax mse
Structured files: use iocsv lines
Frames: use frameframe.load filter sort select head group, column reductions
Databases: use dbconnect exec query transact
Web: a JSON routeroute serve, a JSON response
Web: responses, auth, sessions, and socketstext html redirect respond msgpack arrow bytes sign verify sessions cache limit templates render uploads send recv close smtp
Views: the whole element vocabularyall 32 elements, fetch poll field