val chars = words.map(word => word.toCharArray.toList) chars: List[List[Char]] = List(List(H, e, l, l, o), List(W, o, r, l, d))