Guest User

Untitled

a guest
Apr 16th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. fn next(it: &OutputIt) ?U {
  2. const self = @fieldParentPtr(Self, "it", it);
  3.  
  4. while(self.input_it.next()) |val| {
  5. if (predicate(&val)) {
  6. return val;
  7. }
  8. }
  9. return null;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment