| Shadow_mil | sorry everyone about that last message, I didn't know what the /wallchan command does... sorry |
| Tenjou_Utena | lol |
| triplah_w | kosh: check this out |
| twb | Shadow_mil: I have it. If you mean `...and give me it', then fuck off. |
| triplah_w | 4464 0.096 0.000 0.096 0.000 vector.py:244(length) |
| Tenjou_Utena | Fuck. I sware I'm going to be b& becaose of the El Oh ell.. |
| triplah_w | 4464 0.370 0.000 0.990 0.000 vector.py:244(length) |
| twb | Tenjou_Utena: you're going to bet? |
| Tenjou_Utena | Banned. |
| Shadow_mil | twb: I want it lol |
| triplah_w | kosh: http://rafb.net/p/9rfSzD94.html interesting speedup |
| Tenjou_Utena | Srsly, EoE's gotta be like $15 on DVD now. That's a nice optimization. |
| twb | OK, how would you define the following function: given two strings, x and y, if x "ends in" y, return x, otherwise return x + y. |
| KirkMcDonald | if x.endswith(y): return x else: return x + y |
| triplah_w | return x if y.endswith(x) else return x+y ? |
| Tenjou_Utena | EnsureEnding? |
| triplah_w | not sure if you can do that |
| Leeds | ah, good old executable pseudocode :-) |
| triplah_w | since return is an expression |
| deltab | triplah_w: no |
| triplah_w | ok, thought as much |
| KirkMcDonald | Just put the stuff after return in parentheses, maybe. |
| Tenjou_Utena | retv = x; if x.endswith(y): retv=x+y; return retv? |
| KirkMcDonald | Or just drop the second return. |
| deltab | triplah_w: not the seoncd return |
| KirkMcDonald | s/Or/And/ |
| Leeds | Tenjou_Utena: ugh |
| triplah_w | ahh yep |
| KirkMcDonald | And, uh, nevermind about the parentheses. |
| triplah_w | er, and return is a statement not an expression my bad |
| Leeds | Tenjou_Utena: let me guess... someone thinks that a function should only have a single exit point? |
| triplah_w | down with knuth! etc |
| Tenjou_Utena | lol |
| action | Tenjou_Utena is teh horrible programmar, I guess. o.o |
| Tenjou_Utena | is teh horrible programmar, I guess. o.o |