To take a factorial you can just take the product of a list.