def compact(arr): return list(filter(lambda x: bool(x), arr))