list.apply function

Apply a function to each list element (lapply)