def quicksort(lst):
    """quicksort with filter and lambda"""
    if not lst:
        return lst
    else:
        pivot, *rest = lst
        return (
            quicksort(list(filter(lambda x: x < pivot, rest)))
            + [pivot] +
            quicksort(list(filter(lambda x: x >= pivot, rest)))
        )