• Randelung@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 day 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.