Some FP stuff

Haskell прекрасен

length :: [a] → Int 
length xs = sum [ 1 | _ ← xs ]

About this entry