groupString function

List<String> groupString(
  1. String s
)

Group consecutive characters together if they are equal.

Implementation

List<String> groupString(String s) {
  return groupByString((a, b) => a == b, s);
}