
11 Dec
11 Dec
11:30 a.m.
On 2004-12-11 at 16:00GMT "chris beddoe" wrote:
Hey,
please don't send mail in html
I have been trying to program a simple Haskell program that allows me to input a list of Java files and their dependencies
Judging from what appears below, you should probably start with something simpler. Take this, for example:
getArray :: [String] -> [File] getArray [a] | length[a] == 1 = [parseFile (head[a])] | otherwise = [parseFile (head[a])] && (getArray (tail[a]))
length [a] is always going to be 1, because [a] is a list containing just a. head[a] is a, tail [a] is []. You give no cases for getArray when the input is something other than a list of length 1. -- Jón Fairbairn Jon.Fairbairn@cl.cam.ac.uk
7467
Age (days ago)
7467
Last active (days ago)
1 comments
2 participants
participants (2)
-
chris beddoe
-
Jon Fairbairn