> For the complete documentation index, see [llms.txt](https://smllang.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smllang.gitbook.io/home/basics/enums.md).

# Enums

Enumerating the enumarators

Enums help us to describe data that shares a common interface or type but can have different impementations and meaning. They can also be represent data-less types.&#x20;

{% code lineNumbers="true" %}

```rust
enum DaysOfTheWeek = Monday 
    | Tuesday 
    | Wednesday 
    | Thursday 
    | Friday(activit: String) 
    | Saturday
    | Sunday
```

{% endcode %}

This is a enum declaration that represent the days of the week as data-less types, only friday can store data.&#x20;

### Enum literals

{% code lineNumbers="true" %}

```sml
val monday = DaysOfTheWeek.Monday
val friday = DaysOfTheWeek.Friday("Rest")
```

{% endcode %}
