unite returns a set now, this simplifies all the set(unite( calls.
This commit is contained in:
1 parent
9259a432b7
commit
55615fb3c1
5 files changed
+15
-15
No files matched your search
+1
-1
@@ -157,4 +157,4 @@ def splitlines(string):
|
||||
|
||||
def unite(iterable):
|
||||
"""Turns a two dimensional array into a one dimensional."""
|
||||
return list(chain.from_iterable(iterable))
|
||||
return set(chain.from_iterable(iterable))
|
||||
Reference in new issue
Block a user