startsWith method
check if this starts with sub list
Implementation
bool startsWith(Iterable<T> sub) {
final a = toList();
final b = sub.toList();
if (b.length > a.length) {
return false;
}
for (final element in zip(sub)) {
if (element.$1 != element.$2) {
return false;
}
}
return true;
}