sun: generalize lists keyindex