Re: Code Golf

new topic     » goto parent     » topic index » view thread      » older message » newer message

Okay you can bump that down by 7 characters. I read the stackoverflow site and I wasn't surprised that java took two and a half times more characters to write than C. Seeing as you have to write CharacterAt() just to do what you could do with [] in EUPHORIA or C.

If you supply a character to the question mark operator it doesn't put a new line:

object  
    e = command_line(),  
    s = e[3]  
  
e = 0 & 0 & e[4]  
  
for i = 1 to length(s) do  
    ? e[ match( s[i] & 44, e ) + 2] 
end for 

Shawn Pringle

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu