{
"id": "fn-array-partition",
"dataComponent": "array",
"heading": {
"title": "partition",
"badges": ["Array", "PARTIAL"]
},
"synopsis": "Splits array into two arrays based on predicate result.",
"codeBlocks": [
"extend(\"array\")\n\nparts = array:partition(x => x % 2 == 0, [1,2,3,4])\nsput(parts[0]) # => [2,4]\nsput(parts[1]) # => [1,3]"
],
"notes": [
"Returns [passed, failed]. Supports partial usage."
]
}