def uniq(iterable):
    """Returns a list of unique elements in the passed iterable.
    """
    result = []
    for i in iterable:
        if i not in result:
            result.append(i)
    return result
