pub const Iterator = struct
current: ?*LinkMap
pub fn end(self: *Iterator) bool
pub fn next(self: *Iterator) ?*LinkMap
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
pub const Iterator = struct { current: ?*LinkMap, pub fn end(self: *Iterator) bool { return self.current == null; } pub fn next(self: *Iterator) ?*LinkMap { if (self.current) |it| { self.current = it.next; return it; } return null; } }