# ee.List.cat

Concatenates the contents of other onto list.

<br />

| Usage | Returns |
|---|---|
| `List.cat(other)` | List |

| Argument | Type | Details |
|---|---|---|
| this: `list` | List |   |
| `other` | List |   |

## Examples

### Code Editor (JavaScript)

```javascript
print(ee.List(['dog']).cat(['squirrel']));  // ["dog","squirrel"]
print(ee.List(['moose']).cat(['&', 'squirrel']));  // ["moose","&","squirrel"]

print(ee.List([['a', 'b']]).cat(ee.List([['1', 1]])));  // [["a","b"],["1",1]]

print(ee.List([]).cat(ee.List([])));  // []
print(ee.List([1]).cat(ee.List([])));  // [1]
print(ee.List([]).cat(ee.List([2])));  // [2]
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
display(ee.List(['dog']).cat(['squirrel']))  # ['dog', 'squirrel']

# ['moose', '&', 'squirrel']
display(ee.List(['moose']).cat(['&', 'squirrel']))

# [['a', 'b'], ['1', 1]]
display(ee.List([['a', 'b']]).cat(ee.List([['1', 1]])))

display(ee.List([]).cat(ee.List([])))  # []
display(ee.List([1]).cat(ee.List([])))  # [1]
display(ee.List([]).cat(ee.List([2])))  # [2]
```