List.combinations (#503)

Partial implementation for #503, compute combinations of elements of a list.