The FTB Forum is now read-only, and is here as an archive.
To participate in our community discussions, please join our Discord! https://ftb.team/discord
32 I dunno. Probably not, unless you're code golfing.
And I cannot help but be reminded of Haskell's two-line quicksort:
qsort [] = []
qsort (x:xs) = (qsort [n | n <- xs, n < x]) ++ [x] ++ (qsort [n | n <- xs, n >= x])
I think I'm remembering that correctly, at least.
public function login(){
parent::redirectLoggedIn();
parent::loadAll("users/login");
}
public function register(){
parent::redirectLoggedIn();
parent::loadAll("users/register");
}
I could technically make a function that combines both loadAll and redirectLoggedIn this makes them both only 1 line big