The function takes a given input string and appends its first character to the end of the string.

[CODE]: 

```python
def f(x):
    return x + x[0]
```