riffleOutString function

String riffleOutString(
  1. String s
)

Split in half, interleave together.

Implementation

String riffleOutString(String s) {
  if (s.isEmpty) {
    return '';
  }
  return String.fromCharCodes(riffleOutList(s.codeUnits));
}