Uses compact, lapply and tryNULL
tryapply(list, fun, ...)
list
fun
...
Hadley Wickham <h.wickham@gmail.com>