map
values stored under names
1# map2{a: 1, b: 2}Example outputCtrl+Enter to run
syntax
Section titled “syntax”1# m.key and m["key"] read a value2{a: 1}.a1Example outputCtrl+Enter to run
Functions that take it
Section titled “Functions that take it”listconvert to a list: a string’s characters, a map’s [key, value] pairs, a set’s items, a table’s rows as maps, or a copy of a listlenhow many items a list, map or set has, characters a string has, or bytes a bytes value hascontainswhether x is in v: text (or a regex match) in a string, an item in a list or set, or a key in a mapkeysthe map’s keys, as a listvaluesthe map’s values, as a listgetthe value under key k, or default if there’s nonehaswhether the map has the key kdelremove key k and its value from the map, changing it, and return the mapmergea new map with every entry of every mapentriesthe map as a list of [key, value] pairs, the same as list(m)invertfor a map, swap keys and values, so each value becomes a key (as a string)map_valuesa new map with the same keys and f(value) for every valuefilterkeep only the entries that pass the test f, which is given each key and valuefilter_keyskeep only the entries whose key passes the test fbarsa horizontal bar charttree_viewnested maps and lists drawn as a tree with branch lines, like thetreecommand draws folderssettlegiven how much each person paid, the payments that even things out so everyone has paid the samesunrisewhen the sun rises at a place on a day, or nil if it doesn’t rise or doesn’t set that daysunsetwhen the sun sets at a place on a day, or nil if it doesn’t rise or doesn’t set that dayday_lengthhow long the sun is up at a place on a day: 0 h if it never rises, 24 h if it never setsgreat_circlethe distance between two places along the Earth’s surface, the shortest route, which is roughly the one planes flybearingthe compass direction to set off in from one place to reach another, in degrees clockwise from north (90 is east)jwt_signsign claims as a JSON Web Token with an HMAC key, which jwt reads backurl_buildput a URL together from a map of its parts, the reverse of url_parsebumpthe next versiondisasmdisassemble x86 or x64 machine code into assembly, laid out likeobjdump -d, or with table into a table of addr, bytes and textgadgetsfind ROP gadgets: short runs of instructions ending inret, the pieces a return-oriented exploit chains together when it can’t run code of its ownxrefsfind the instructions in a binary that call, jump to or read from an address or symbolvathe address a byte of a binary’s file is loaded at, through its segment tableoffsetwhere in a binary’s file the byte at an address comes from, through its segment table
Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.