DISTINCT

Description

Removes duplicate entries. So if applying on ascending ordered data, you would get a descending ordered data set.

DISTINCT(Scalar<any>)

DISTINCT(scalar: Scalar<any>): Scalar<any>

Returns the same scalar (because a scalar cannot have any duplicates).

Parameters

Parameter
Description

scalar

A scalar of type any

DISTINCT(Vector<any>)

DISTINCT(vector: Vector<any>): Vector<any>

Returns the same elements, but without any duplicates.

Parameters

Parameter
Description

vector

A vector of type any


DISTINCT(GroupedScalar<any, any>)

DISTINCT(group: GroupedScalar<any,any>): GroupedScalar<any,any>

Returns the same GroupedScalar (because a scalar cannot have any duplicates).

Parameters

Parameter
Description

group

A GroupedScalar of type <any, any>


DISTINCT(GroupedVector<any, any>)

DISTINCT(group: GroupedVector<any,any>): GroupedVector<any,any>

Returns the same GroupedVector, but removes all duplicates in the values of each group.

Parameters

Parameter
Description

group

A GroupedVector of type <any, any>

Examples

Removes duplicated entries in the building's device types Vector.

DISTINCT(Building::DeviceTypes)

Last updated

© 2023 MOOST AG