i2b_i while str return def i2b str return and i2b or def wrap lambda l

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
i2b_i(n):
s = ''
while n:
s = str(n%2) + s
n //=2
return s
def i2b(n, s=''):
s = str(n%2) + s
n //= 2
return (n and i2b(n, s)) or s
def wrap(n, s=[]):
Y = lambda g: (lambda f: g(lambda arg: f(f)(arg))) (lambda f: g(lambda arg: f(f)(arg)))
itb = lambda f: lambda n: ((n and iconcat(s, str(mod(n, 2))) and f(div(n, 2))) or ''.join([b for a, b in filter(lambda x:not getitem(x, 0)%5, enumerate(str(s)[2:-2]))]))
return Y(itb)(n)