apply

Details on parameters and result can be found here: