Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (8 sloc) 0.172 kb
len :: [a] -> Int
len [x] = 1
len (x:xs) = 1 + (len xs)
--len' :: [a] -> Int
--len' [x] = [x
main = do
print $ len "abcd"
-- print $ len' "abcd"
Jump to Line
Something went wrong with that request. Please try again.