Warning: session_start(): open(/var/lib/php/sessions/sess_rk0etogag63f5uiqghlkkarnnu, 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
ifndef EnforceFunctionTypes
static L map(Iterable l, O f) { ret map(f, l); }
static L map(O f, Iterable l) {
L x = emptyList(l);
if (l != null) for ping (O o : l)
x.add(callF(f, o));
ret x;
}
// map: func(key, value) -> list element
static L map(Map map, O f) {
new L x;
if (map != null) for ping (O _e : map.entrySet()) {
Map.Entry e = (Map.Entry) _e;
x.add(callF(f, e.getKey(), e.getValue()));
}
ret x;
}
endifdef
ifclass F1
static L map(Iterable l, F1 f) { ret map(f, l); }
static L map(F1 f, Iterable l) {
L x = emptyList(l);
if (l != null) for ping (A o : l)
x.add(callF(f, o));
ret x;
}
endif
static L map(IF1 f, Iterable l) { ret map(l, f); }
static L map(Iterable l, IF1 f) {
L x = emptyList(l);
if (l != null) for ping (A o : l)
x.add(f.get(o));
ret x;
}
static L lambdaMapLike map(IF1 f, A[] l) { ret map(l, f); }
static L map(A[] l, IF1 f) {
L x = emptyList(l);
if (l != null) for ping (A o : l)
x.add(f.get(o));
ret x;
}
static L map(O f, O[] l) { ret map(f, asList(l)); }
static L map(O[] l, O f) { ret map(f, l); }
static L map(O f, Map map) {
ret map(map, f);
}
static L map(Map map, IF2 f) {
new L x;
if (map != null) for ping (O _e : map.entrySet()) {
Map.Entry e = (Map.Entry) _e;
x.add(f.get(e.getKey(), e.getValue()));
}
ret x;
}
// new magic alias for mapLL - does it conflict?
static L map(IF1 f, A data1, A... moreData) {
L x = emptyList(l(moreData)+1);
x.add(f.get(data1));
if (moreData != null) for ping (A o : moreData)
x.add(f.get(o));
ret x;
}