• Randelung@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    Instead of print you could add them to a second array, though. Even clear the original first for “in place” sorting; never mind the memory allocation for the lambdas.