DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR C
remove on condtion in vec rust
let mut vec = vec![1, 2, 3, 4]; vec.retain(|&x| x % 2 == 0); assert_eq!(vec, [2, 4]);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#condtion
#vec
#rust
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit