Using Lists and recursivity , make a function that generates a list with a string containing all binary numbers of N bits.
this examples is non-recursive:
ex3 :: [String]
ex3 = [[x,y,z,w]|x <-"01",y<-"01",z<-"01",w<-"01"]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.