summaryrefslogtreecommitdiff
path: root/1-10/4.hs
blob: 28c1423359bf050f716b8c25c6a38efc7848f88e (plain) (blame)
1
2
myLength [] = 0
myLength (_:xs) = 1 + myLength xs