module Main where

    safeTailConditional xs = if null xs then [] else tail xs

    safeTailGuarded xs | null xs = []
                       | otherwise = tail xs

    safeTailPatternMatching [] = []
    safeTailPatternMatching xs = tail xs
