We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unique
1 parent d0d23ca commit d2a788aCopy full SHA for d2a788a
book/src/filters.md
@@ -560,6 +560,31 @@ Output:
560
he...
561
```
562
563
+### unique
564
+[#unique]: #unique
565
+
566
+Returns an iterator with all duplicates removed.
567
568
+**This filter is only available with the `std` feature enabled.**
569
570
+With this data:
571
572
+```rust
573
+vec!["a", "b", "a", "c"]
574
+```
575
576
+And this template:
577
578
+```jinja
579
+{% for elem in data|unique %}{{ elem }},{% endfor %}
580
581
582
+Output will be:
583
584
+```text
585
+a,b,c,
586
587
588
### upper | uppercase
589
[#upper]: #upper--uppercase
590
0 commit comments