fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 119: Deduplicate list
Idiom # 119: Deduplicate list
See
programming-idioms.org
:
Code
Code input
# preserving order # x := x.unique # not preserving order # x := container.ps_set String .new x
Runnable Example
Code input
ex119 is # preserving order # x := [ $"b", "a", "b", "c" ] x1 := x.unique say x1 # not preserving order # x2 := [ "b", "a", "b", "c" ] x3 := container.ps_set codepoint .new x2 say x3
What are effects?
last changed: 2026-11-23
next: Idiom # 120: Read integer from stdin