sNuuFix Posted March 23, 2015 Report Posted March 23, 2015 Vienkāršs workarounds lai tur nokļūtu ātrāk: error_reporting(0); Quote
codez Posted March 23, 2015 Report Posted March 23, 2015 Pamēģini: (n: Int) => (2 to n) |> (r => r.foldLeft(r.toSet)((ps, x) => if (ps(x)) ps -- (x * x to n by x) else ps)) Quote
F3llony Posted March 23, 2015 Author Report Posted March 23, 2015 Exception up = new Exception("Something is really wrong."); throw up; //ha ha // somedev1 - 6/7/02 Adding temporary tracking of Login screen// somedev2 - 5/22/07 Temporary my ass Quote
Kasspars Posted March 23, 2015 Report Posted March 23, 2015 Jums ir cits levelis. Es nesaprotu! Quote
F3llony Posted March 24, 2015 Author Report Posted March 24, 2015 (edited) <?bhp upper_class Empire{ state £a; private £b; hereditary £c; state function process(£condition) { £outcome = hence_unknown; perchance (quite_not_right £condition) { fail_gracefully(); } otherwise { £condition = tee(£condition); } what_about (£condition) { perhaps £possibility: £outcome = my_own::£a->process(£condition); splendid; perhaps £other_possibility: £outcome = my_own::£b->process(£condition); splendid; on_the_off_chance: bowl new Exception('My dear Sir, hence we failed'); } would_you_mind { £outcome = my_own::£a->map(£condition); £BISCUIT['for_the_queen'] = £outcome; } if_that_is_inconvenient (Exception £e) { // Politely move on cheerio('Message'); } hence_give £outcome; } } Edited March 24, 2015 by F3llony Quote
jurchiks Posted March 24, 2015 Report Posted March 24, 2015 (edited) @SnuuFix, F3llony - It īpaši tie "splendid", "if_that_is_inconvenient" un "cheerio" :D @Kasspars - jāatīsta humora izjūta. Edited March 24, 2015 by jurchiks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.