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

Username:   Password: 
 RegisterRegister   
 Challenge for 2011: functions
Index -> Programming, General Programming -> Functional Programming
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
apython1992




PostPosted: Sat Mar 12, 2011 10:39 am   Post subject: RE:Challenge for 2011: functions

Hm, okay yeah that makes sense. I'm gonna spend some time learning Haskell, I think. It sounds like a pretty interesting language.
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Sat Mar 12, 2011 12:51 pm   Post subject: RE:Challenge for 2011: functions

Don't be so rash. Your sanity is at stake!
apython1992




PostPosted: Sat Mar 12, 2011 3:30 pm   Post subject: Re: RE:Challenge for 2011: functions

Insectoid @ Sat Mar 12, 2011 12:51 pm wrote:
Don't be so rash. Your sanity is at stake!

Haha, you're probably right.
Tyr_God_Of_War




PostPosted: Sun Apr 24, 2011 8:09 am   Post subject: Re: Challenge for 2011: functions

One really nice thing about this is when you are mapping over a list.

>map (+3) [1,2,3]
[4,5,6]

Compare that to in scheme:
>(map (lambda (x) (+ 3 x)) '(1,2,3))
'(4,5,6)

Quite a bit shorter and nicer on the eyes too. (Not that I have anything against scheme mind you. It's a great language, but Haskell is just prettier)
wtd




PostPosted: Thu May 05, 2011 10:20 am   Post subject: Re: RE:Challenge for 2011: functions

Insectoid @ Sun Mar 13, 2011 1:51 am wrote:
Don't be so rash. Your sanity is at stake!


If you're on this site, it's a good bet your sanity is already questionable at best.
Display posts from previous:   
   Index -> Programming, General Programming -> Functional Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

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


Style:  
Search: