vrl 0.32.0

Vector Remap Language
Documentation
{
  "anchor": "pop",
  "name": "pop",
  "category": "Array",
  "description": "Removes the last item from the `value` array.",
  "arguments": [
    {
      "name": "value",
      "description": "The target array.",
      "required": true,
      "type": [
        "array"
      ]
    }
  ],
  "return": {
    "types": [
      "array"
    ],
    "rules": [
      "The original `value` is not modified."
    ]
  },
  "examples": [
    {
      "title": "Pop an item from an array",
      "source": "pop([1, 2, 3])",
      "return": [
        1,
        2
      ]
    }
  ],
  "pure": true
}