def _Cycle(value, unused_context, args):
 return args[((value - 1) % len(args))]

def _Cycle ( value , unused_context , args ) : return args [ ( ( value - 1 ) % len ( args ) ) ]
cycle between various values on consecutive integers .