def integer_to_term(k, n_bits=None):
 s = '{0:0{1}b}'.format(abs(as_int(k)), as_int(abs((n_bits or 0))))
 return list(map(int, s))

def integer_to_term ( k , n_bits = None ) : s = '{0:0{1}b}' . format ( abs ( as_int ( k ) ) , as_int ( abs ( ( n_bits or 0 ) ) ) ) return list ( map ( int , s ) )
return a list of the base-2 digits in the integer .