riffleInString function

String riffleInString(
  1. String s
)

Split in half, interleave second half first.

Implementation

String riffleInString(String s) {
  if (s.isEmpty) {
    return '';
  }
  return String.fromCharCodes(riffleInList(s.codeUnits));
}