haskell len code example Example 1: get string lenght haskell length :: [a] -> Int Example 2: list length haskell -- input length [1,2,3] -- output 3