Warning: session_start(): open(/var/lib/php/sessions/sess_m2uvoona2la8bg7jplkdutn38o, 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 B getOrCreate(Map map, A key, Class extends B> c) ctex {
B b = map.get(key);
if (b == null)
map.put(key, b = c.newInstance());
ret b;
}
// f : func -> B
static B getOrCreate(Map map, A key, O f) ctex {
B b = map.get(key);
if (b == null)
map.put(key, b = (B) callF(f));
ret b;
}
static B getOrCreate(IF0 f, Map map, A key) {
ret getOrCreate(map, key, f);
}
static B getOrCreate(Map map, A key, IF0 f) {
B b = map.get(key);
if (b == null)
map.put(key, b = c!);
ret b;
}
static B nuLike getOrCreate(Class extends B> c, Map map, A key) {
ret getOrCreate(map, key, c);
}