Warning: session_start(): open(/var/lib/php/sessions/sess_mch99s1ed2rsugag1825ngu2f3, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static LL mapLike streaksAndNonStreaks(O pred, L l) {
new LL out;
int start = 0;
Bool last = null;
for i over l: {
bool b = isTrue(callF(pred, a));
Bool result = (Bool) callF(pred, first(l));
if (last != null && result != null && neq(result, last)) {
out.add(subList(l, start, i));
start = i;
}
if (result != null) last = result;
}
if (start < l(l))
out.add(subList(l, start));
ret out;
}