def METHOD_NAME(ls):
    ''' Return all tail combinations (a la Haskell)
        tails :: [x] -> [[x]]
        >>> tails('abcd')
        ['abcd', 'bcd', 'cd', d']
    '''
    for i in range(len(ls)):
        yield ls[i:]