def new_get_event_ts(ts_field):
 return (lambda event: lookup_es_key(event[0], ts_field))

def new_get_event_ts ( ts_field ) : return ( lambda event : lookup_es_key ( event [ 0 ] , ts_field ) )
constructs a lambda that may be called to extract the timestamp field from a given event .