(dataentries: datamap) → array

This takes a datamap, and returns an array of its name/value pairs. Each pair is a datamap that only has “name” and “value” data. The pairs are ordered by their name.

Example usage:

(a: (dm: "name", "A", "value", 25), (dm: "name", "B", "value", 24))

an array of string from the $m datamap's names and values.

Rationale:

There are occasions where operating on just the names, or the values, of a datamap isn't good enough - you'll want both. Rather than the verbose process of taking the (datanames:) and (datavalues:) arrays and using them (interlaced:) with each other, you can use this macro instead, which allows the name and value of each entry to be referenced using “name” and “value” properties.

See also:

(datanames:), (datavalues:)