Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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,
    };


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: