mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-04 21:02:27 +08:00
SetToDefaultIf sets elements to their zero value if they match the given predicate. It retains the positions of the elements in the slice. It returns slice of T and the count of modified slice items