Tables

dex-table

Call with val-dex

Todo

Document this.

merge-table

Call with val-merge

Todo

Document this.

fuse-table

Call with val-fuse

Todo

Document this.

table-empty

Call with (ignored)

Todo

Document this.

table-shadow

Call with key maybe-val table

Todo

Document this.

table-get

Call with key table

Todo

Document this.

table-map-fuse

Call with table fuse (fn key)

Given a table, a fuse, and a function, calls that function with each key of the table, and returns a (yep …) containing the fused value of all the function results. If the table is empty or if any element is outside the fuse’s domain, this returns (nil) instead.

table-sort

Call with cline table

Given a cline and a table, returns (yep <ranks>) or (nil), where <ranks> is a cons list of tables that partition that table’s entries. The result tables are in the order determined by the cline, and no two elements of a single result table are candidly ordered with respect to each other using that cline. The result is (nil) if any element of the table doesn’t belong to the cline’s domain.