mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
Use unpack syntax to simplify uniqueness example
This commit is contained in:
parent
b255b17db9
commit
69f1a990f0
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ If you want to get all the _unique_ values, you can convert the result into a
|
|||
set with a comprehension:
|
||||
|
||||
```rcl
|
||||
{for distro in machine_distros.values(): distro}
|
||||
{ ..machine_distros.values() }
|
||||
// Evaluates to:
|
||||
{"ubuntu:20.04", "ubuntu:22.04", "ubuntu:23.10"}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue