[insert-before]

insert-before is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Inserts nodes before the specified target node.

  • Value (node-list,single-object), required: Expression selecting the target node or nodes to insert before

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
any node name lambda yes Source container or node-producing slot evaluated before its child nodes are applied to the selected target location. Can be repeated.

Guide: How to use [insert-before]

JSON declaration

This is the complete declaration of insert-before, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "insert-before",
  "description": "Inserts nodes before the specified target node",
  "signature": {
    "input": {
      "kind": "node-list,single-object",
      "description": "Expression selecting the target node or nodes to insert before",
      "required": true,
      "mode": "Expression"
    },
    "children": {
      "*": {
        "type": "lambda",
        "kind": "node-list",
        "description": "Source container or node-producing slot evaluated before its child nodes are applied to the selected target location",
        "required": true,
        "mode": "ExecutableLambda",
        "cardinality": "OneOrMore",
        "role": "SourceContainer",
        "evaluation": "EvalSelf",
        "projection": "ChildrenOfChildren"
      }
    }
  }
}

← insert-after all core slots int2words →