The ubiquitous mapply function.