← All procedures

algebra.arr

This function gives one value or many values as an array.

CLI
Package
@procedures/algebra · README
Path
["algebra","arr"]
CLI
mark algebra arr --value <any>
As data
{"$proc":["algebra","arr"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/algebra/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["algebra","arr"], { value: "<value>" });
console.log(JSON.stringify(result));

From the command line

$ mark algebra arr --value <any>

As data, in a program

{ "$proc": ["algebra", "arr"], "input": { "value": "<value>" } }

Input

FieldTypeRequiredDefaultDescription
valueanyyes

Output

The schema does not list fields (any[]).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "value": {}
    },
    "required": [
      "value"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "array",
    "items": {}
  }
}