Overview
a taste
Section titled “a taste”1# 4th Thursday of November2date(2026, 11, 1).nth_weekday(4, "thu")2026-11-263# cities are time zones4date("2026-12-25 18:30") to "Sao Paulo"2026-12-25 21:30:00 -03:005# units combine and convert6100 km / 2 h to mph31.0686 mph7# cups to grams81 cup * density("flour") to g125.392 g9# an hourly wage as a yearly salary10$25/h to USD/workyr$52,000.00/workyr11# measurements with error bars125 ± 0.1 m * 25 ± 0.2 m13# exact decimals140.1 + 0.2 == 0.3true15# factoring big ints16factors(2 ** 32 + 1)[641, 6700417]17# calculus: the area under a sine curve18integrate(sin, 0, pi)219# the distance from Paris to Tokyo20great_circle("Paris", "Tokyo")9712.52 km21# the closest spelling22"recieve".closest(["deceive", "receive", "recipe"])"receive"23# is this IP address in that network?24in_cidr("10.0.3.7", "10.0.0.0/22")true25# odds in plain words26odds(2 ** -64)"1 in 1.84 × 10^19: about as likely as a perfect March Madness bracket (1 in 9.20 × 10^18)"27# charts made of text28(0..20).map(|x| sin(x / 3)).sparkline"▅▆▇▇███▇▆▅▄▃▂▁▁▁▂▂▄▅"29# reading these: x.f(y) means f(x, y), |x| x * 2 is a small function of x, xs |> sum passes xs to sum, and # starts a commentExample outputCtrl+Enter to run
IntroductionWhere to start, depending on what you're coming from
SyntaxValues, calls, pipes, lambdas and statements on one page
Advanced examplesLonger recipes that combine several modules
Modules
Section titled “Modules”corethe basics: kinds of value, printing, converting between types, reading values from text, and help · 21 functions
fsread and write files, and manage folders and the current directory · 21 functions
systhe world outside zil: script arguments, environment variables, other programs, opening files, the clipboard, and the web · 10 functions
textchange case, split and join, search and replace in text, with regular expressions, and read numbers written in words · 122 functions · layout, compare, translation, encoding, hash, paths, ciphers, crypto, fancy, placeholder
datawork with collections of values: sort, search and pick from lists, maps, sets and tables, and chart them · 70 functions · lists, maps, sets, tables, formats, charts
mathrounding, roots, powers and logs, percentages, and the exact numbers zil uses · 300 functions · stats, trig, numtheory, bits, floats, dist, bases, formatting, random, uncertainty, complex, linalg, calculus, special, poly, geometry
unitsnumbers with units like km, kg or mph: calculate with them and convert between them · 10 functions · metric, imperial, us_customary, cgs, astro, constants, money, informal, kitchen, health
financemoney math: pay rates, savings growth, loan payments, investment returns, splitting bills, and profit margins · 21 functions
timedates and times: read them from text, do arithmetic with them, and show them in plain words · 63 functions · calendars, zones, sky
geofacts about countries and cities, and distances and directions between places · 8 functions
devtools for programmers: login tokens, URLs, version numbers and file permissions, plus networks, IDs, colors, binaries and hardware · 90 functions · net, ids, colors, codes, packing, hardware, esolang, binaries, forensics
artpictures made of text: clip art, colored text, QR codes, images, and animation · 36 functions · frames, generative, games, figlet, photo
Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.