AkronCodeClub / edX-FP101x-Oct-2014

Study group for edX course FP101x beginning October 2014
8 stars 1 forks source link

Lesson 4 Exercise 3 - Not in scope: 'factors' #18

Open ghost opened 9 years ago

ghost commented 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]
alanphil commented 9 years ago

Yes, saw the same 'not in scope' issue. Thanks for posting the factors implementation here.

jdantonio commented 9 years ago

@vht-sorourke Thank you!