summaryrefslogtreecommitdiff
path: root/service/pixelated/support/functional.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/support/functional.py')
-rw-r--r--service/pixelated/support/functional.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/pixelated/support/functional.py b/service/pixelated/support/functional.py
index 734eba0b..b496eb95 100644
--- a/service/pixelated/support/functional.py
+++ b/service/pixelated/support/functional.py
@@ -24,3 +24,7 @@ def unique(_list):
seen = set()
seen_add = seen.add
return [x for x in _list if not (x in seen or seen_add(x))]
+
+
+def compact(_list):
+ return [a for a in _list if a]