One way to do that is to use reverse:
reverse.(res)
But you’ll probably want to first reverse the order of the arguments to product, too.
One way to do that is to use reverse:
reverse.(res)
But you’ll probably want to first reverse the order of the arguments to product, too.