Solve the programming task below in a Python markdown code block.
Define a function that removes duplicates from an array of numbers and returns it as a result.

The order of the sequence has to stay the same.
Also feel free to reuse/extend the following starter code:
```python
def distinct(seq):
```