[ create a new paste ] login | about

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

Haskell, pasted on Jul 12:
1
2
3
4
5
safetail :: [a] -> [a]
safetail xs = if null[xs] then [] else [_,xs]

main = do
   putStrLn $ show $ safetail[]


Output:
1
2
Error occurred
ERROR line 2 - Illegal `_' in expression


Create a new paste based on this one


Comments: