# ListOf

# ListOf


```
class ListOf : ExpressionWithId
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.home.automation.ExpressionWithId](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ExpressionWithId) ||
|   | ↳ | [com.google.home.automation.ListOf](https://developers.home.google.com/reference/kotlin/com/google/home/automation/ListOf) |

*** ** * ** ***

The LIST_OF operator, which creates a list from its elements.

```kotlin
val x = ListOf(Constant(1), Constant(2), Constant(3))
```

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/automation/Expression>` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ListOf#elements()` |

## Public properties

### elements

```
val elements: List<Expression>
```