Stream.startsWithOneOf

This commit is contained in:
2023-07-13 20:27:06 -06:00
parent 3935c922ea
commit ec73eed432

View File

@@ -114,6 +114,11 @@ class Stream {
};
}
public function startsWithOneOf(strings:Array<String>) {
for (s in strings) if (startsWith(s)) return true;
return false;
}
var lineLengths = [];
/** Every drop call should end up calling dropChars() or the position tracker will be wrong. **/