a guest Oct 1st, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def ordered_shuffle(*args):
- z = list(zip(*(a.items() if isinstance(a, dict) else a for a in args)))
- return [cls(e) for cls, e in zip(map(type, args), zip(*z))]
RAW Paste Data