• Ephera
    link
    fedilink
    arrow-up
    2
    ·
    3 years ago

    I was gonna say you could probably actually have that properly calculated and O(1), if you stuck the result in a lazy list. But then I realized this hard-coded implementation probably already exhausts ulong, so there really is no point to that.