letters function
Split a String into a List of characters.
Implementation
List<String> letters(String s, bool keepWhitespace) {
if (s.isEmpty) {
return [];
}
if (keepWhitespace) {
return s.split('');
}
// ignore whitespace
return letters((concatStrings(words(s))), true);
}