mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Added flip function.
This commit is contained in:
parent
a6f8ddab18
commit
b7cb48b19b
@ -259,5 +259,8 @@ def partition(p, L):
|
|||||||
else:
|
else:
|
||||||
no.append(elt)
|
no.append(elt)
|
||||||
return (yes, no)
|
return (yes, no)
|
||||||
|
|
||||||
|
def flip((x, y)):
|
||||||
|
return (y, x)
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user