Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust count distinct elements in list

let cnt = items.iter().unique().count();
 
PREVIOUS NEXT
Tagged: #rust #count #distinct #elements #list
ADD COMMENT
Topic
Name
1+6 =