Skip to content

map

values stored under names

1
# map
2
{a: 1, b: 2}
Example outputCtrl+Enter to run
1
# m.key and m["key"] read a value
2
{a: 1}.a1
Example outputCtrl+Enter to run
  • list convert 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 list
  • len how many items a list, map or set has, characters a string has, or bytes a bytes value has
  • contains whether x is in v: text (or a regex match) in a string, an item in a list or set, or a key in a map
  • keys the map’s keys, as a list
  • values the map’s values, as a list
  • get the value under key k, or default if there’s none
  • has whether the map has the key k
  • del remove key k and its value from the map, changing it, and return the map
  • merge a new map with every entry of every map
  • entries the map as a list of [key, value] pairs, the same as list(m)
  • invert for a map, swap keys and values, so each value becomes a key (as a string)
  • map_values a new map with the same keys and f(value) for every value
  • filter keep only the entries that pass the test f, which is given each key and value
  • filter_keys keep only the entries whose key passes the test f
  • bars a horizontal bar chart
  • tree_view nested maps and lists drawn as a tree with branch lines, like the tree command draws folders
  • settle given how much each person paid, the payments that even things out so everyone has paid the same
  • sunrise when the sun rises at a place on a day, or nil if it doesn’t rise or doesn’t set that day
  • sunset when the sun sets at a place on a day, or nil if it doesn’t rise or doesn’t set that day
  • day_length how long the sun is up at a place on a day: 0 h if it never rises, 24 h if it never sets
  • great_circle the distance between two places along the Earth’s surface, the shortest route, which is roughly the one planes fly
  • bearing the compass direction to set off in from one place to reach another, in degrees clockwise from north (90 is east)
  • jwt_sign sign claims as a JSON Web Token with an HMAC key, which jwt reads back
  • url_build put a URL together from a map of its parts, the reverse of url_parse
  • bump the next version
  • disasm disassemble x86 or x64 machine code into assembly, laid out like objdump -d, or with table into a table of addr, bytes and text
  • gadgets find ROP gadgets: short runs of instructions ending in ret, the pieces a return-oriented exploit chains together when it can’t run code of its own
  • xrefs find the instructions in a binary that call, jump to or read from an address or symbol
  • va the address a byte of a binary’s file is loaded at, through its segment table
  • offset where 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.