Ok so I\'m defining a function that takes a variable number of inputs and clamps each of them
def clamp(*args): return [ max(min(arg, 0.8), 0.2) for arg in a
You can force it to unpack a single element by adding a comma after the name. Not ideal but here you go:
A, = clamp(a)