# DISTINCT

### Description

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

### DISTINCT(Scalar\<any>)

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

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

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>scalar</td><td>A scalar of type any</td></tr></tbody></table>

### DISTINCT(Vector\<any>)

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

Returns the same elements, but without any duplicates.

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>vector</td><td>A vector of type any</td></tr></tbody></table>

***

### DISTINCT(GroupedScalar\<any, any>)

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

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

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>group</td><td>A GroupedScalar of type &#x3C;any, any></td></tr></tbody></table>

***

### DISTINCT(GroupedVector\<any, any>)

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

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

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>group</td><td>A GroupedVector of type &#x3C;any, any></td></tr></tbody></table>

### Examples

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

```java
DISTINCT(Building::DeviceTypes)
```
