fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 218: List intersection
Idiom # 218: List intersection
See
programming-idioms.org
:
Code
creates an intersection of two sets
container.set_of_ordered a ∩ container.set_of_ordered b
What are effects?
Running Example
ex218 is a := ["eins", "zwei", "drei"] b := ["drei", "vier", "fünf"] c := container.set_of_ordered a ∩ container.set_of_ordered b say c
What are effects?
last changed: 2025-05-13
next: Idiom # 219: Replace multiple spaces with single space