Open ghost opened 9 years ago
Anyone else have this issue trying the implementations for 'perfects' in ghci? I had to implement 'factors' first (easy enough, since we were shown how in the lecture):
factors n = [x | x <- [1..n], n `mod` x == 0]
Yes, saw the same 'not in scope' issue. Thanks for posting the factors implementation here.
@vht-sorourke Thank you!
Anyone else have this issue trying the implementations for 'perfects' in ghci? I had to implement 'factors' first (easy enough, since we were shown how in the lecture):