How can i implement the length function in haskell by using list comprehension? An example.
take [x| x<- [1,2,3], even]