Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Why can't programmers...program?
Index -> General Discussion
Goto page Previous  1, 2, 3
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Prabhakar Ragde




PostPosted: Fri Mar 12, 2010 5:28 pm   Post subject: Re: Why can't programmers...program?

At the risk of further annoying Insectoid... this one is fun. Haskell, of course.

code:

every n s = zipWith ($) $ cycle $ replicate (n-1) id ++ [const s]
main = putStr . unlines .
       (every 15 "FizzBuzz") . (every 5 "Fizz") . (every 3 "Buzz") $
       map show [1..100]
Sponsor
Sponsor
Sponsor
sponsor
Turing_Gamer




PostPosted: Mon Mar 22, 2010 7:26 am   Post subject: RE:Why can\'t programmers...program?

I agree with you TheGuardian. Apparently that is all we can bascially do.
USEC_OFFICER




PostPosted: Mon Mar 22, 2010 11:37 am   Post subject: RE:Why can\'t programmers...program?

You meantion (Can't spell) a test like this, then everybody wants to prove that they can do it.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 3 of 3  [ 33 Posts ]
Goto page Previous  1, 2, 3
Jump to:   


Style:  
Search: