Skip to content

Instantly share code, notes, and snippets.

View 1MateocRtl's full-sized avatar
🧠
What is lock can be unlocked⛓

Matthew Gregg 1MateocRtl

🧠
What is lock can be unlocked⛓
View GitHub Profile
@kiorky
kiorky / uniq.py
Last active November 16, 2019 03:20
own version of list unification
from collections import OrderedDict
import itertools
from random import shuffle, randint
import re
from sets import Set
def f1(seq): # Raymond Hettinger
# not order preserving
set = {}
map(set.__setitem__, seq, [])