setDistinct
setDistinct(set)
Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.
Try it yourself:
$1 | setDistinct([1, 1, 1, 2, 2, 3])
|
Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.
Try it yourself:
$1 | setDistinct([1, 1, 1, 2, 2, 3])
|