3 ms·
What if the User is in multiple linked lists? const User = struct { username: []const u8, id: u128, age: u7, sorted_by_age:
by messe 2y ago
What if the User is in multiple linked lists?
const User = struct {
username: []const u8,
id: u128,
age: u7,
sorted_by_age: std.SinglyLinkedList.Node,
sorted_by_id: std.SinglyLinkedList.Node,
};