[ create a new paste ] login | about

Link: http://codepad.org/LVecpglP    [ raw code | output | fork ]

Haskell, pasted on May 6:
1
2
3
4
initials :: String -> String -> String
initials firstname lastname = [f] ++ ". " ++ [l] ++ "."
    where (f:_) = firstname
          (l:_) = lastname 


Output:
1
2
Error occurred
ERROR - Undefined variable "main"


Create a new paste based on this one


Comments: