@curry
def set_attribute(name, value):
 def decorator(f):
  setattr(f, name, value)
  return f
 return decorator

@ curry def set_attribute ( name , value ) : def decorator ( f ) : setattr ( f , name , value ) return f return decorator
set the value of an attribute .