Nov 24, 2009 #1 artdias90 Programmer Nov 24, 2009 1 BR 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"]
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"]
Nov 24, 2009 #2 joel76 Programmer Aug 31, 2008 295 FR You mean, with N = 2, L= [0, 1, 2, 3] (00, 01, 10, 11) ? Upvote 0 Downvote