{
  "id": "fn-array-difference",
  "dataComponent": "array",
  "heading": {
    "title": "difference",
    "badges": ["Array", "PARTIAL"]
  },
  "synopsis": "Returns an array of elements in the first array not present in the second. Partial usage and placeholders supported.",
  "codeBlocks": [
    "extend(\"array\")\n\nsput( array:difference([1,2,3,4], [2,4,6]) )\n# => [1,3]\n\n# Partial usage:\ndiffA = array:difference([7,8,9])\nsput( diffA([8]) )\n# => [7,9]\n\n# Placeholder usage:\npart = array:difference(_, [3,5])\nsput( part([3,4,5,6]) )\n# => [4,6]"
  ],
  "notes": [
    "Comparison is by value.",
    "Partial usage and _ placeholders are supported.",
    "Order of result matches the first array."
  ]
}
