fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 276: Insert an element in a set
Idiom # 276: Insert an element in a set
See
programming-idioms.org
:
Code
s := x.add e
What are effects?
Runnable Example
ex276 is x := container.set_of_ordered [5, 2, 4, 8] say "$x" e := 1 s := x.add e say "$s"
What are effects?
last changed: 2024-10-17
next: NYI: Idiom # 277: Remove an element from a set