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

Username:   Password: 
 RegisterRegister   
 School Project Using Miranda
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
OneOffDriveByPoster




PostPosted: Mon Sep 21, 2009 9:34 pm   Post subject: Re: RE:School Project Using Miranda

rar @ Mon Sep 21, 2009 9:25 pm wrote:
OneOffDriveByPoster @ Mon Sep 21, 2009 9:24 pm wrote:
What does "--" do with [7,7] -- [7]?
[7]?
I think using "--" is overkill if you are going to sort anyway. But sorting is a good way to do this. Consider:
code:
head :: [num] -> num
head (b:c) = b

tail :: [num] -> [num]
tail (b:c) = c
Sponsor
Sponsor
Sponsor
sponsor
rar




PostPosted: Tue Sep 22, 2009 10:50 am   Post subject: RE:School Project Using Miranda

code:
program x y = x -- (x -- y)


-_- Feel like an idiot now Neutral It's so simple!

Thanks for the help!
Alexmula




PostPosted: Tue Sep 22, 2009 5:05 pm   Post subject: RE:School Project Using Miranda

some1 from uWindsor Very Happy
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  [ 18 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: