client.unzip
Unzip array of tuples into multiple arrays
browsernot registered- Package
- @procedures/client · README
- Path
["client","unzip"]- CLI
- Not a
markcommand: it is not in the default registry. - As data
{"$proc":["client","unzip"],"input":{}}- Tags
- core, array
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY, allCoreProcedures } from "@procedures/client";
for (const procedure of allCoreProcedures) {
if (!PROCEDURE_REGISTRY.has(procedure.path)) PROCEDURE_REGISTRY.register(procedure);
}
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["client","unzip"], { tuples: [] });
console.log(JSON.stringify(result));As data, in a program
{ "$proc": ["client", "unzip"], "input": { "tuples": [] } }Input
| Field | Type | Required |
|---|---|---|
tuples | unknown[][] | yes |
Output
The schema does not list fields (any[][]).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"tuples": {
"type": "array",
"items": {
"type": "array",
"items": {}
},
"description": "The tuples"
}
},
"required": [
"tuples"
]
},
"output": {
"type": "array",
"items": {
"type": "array",
"items": {}
},
"description": "One array for each position of the tuples"
}
}