Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. fn f<T, U, F>(v: &[T], f: F) -> Option<Vec<U>>
  2. where F: Fn(&T) -> Option<U> {
  3. v.iter().map(f).collect()
  4. }
  5.  
  6. fn main() {}
Add Comment
Please, Sign In to add comment