Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
»

dedup_list

list.dedup_list

(by Binary bool list.A list.A)
 => 
list list.A
[Contains abstract features]
filter out consecutive duplicate elements using the
given relation and return result as a list.

Keep the order of elements unchanged.

ex.
[4,2,2,6,2,1,2,4].dedup_list (a,b -> a%2=b%2) = [4,1,2]
[4,2,2,6,2,1,2,4].dedup_list (<=) = [4,2,1]
0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)