rax_type_tuple_get_index_by_label_nr

rax_number_t rax_type_tuple_get_index_by_label_nr(rax_type_t tuple_type,
 rax_string_t label,
 rax_number_t n);
 

Returns the index of the nth tuple field with a given label. Return -1, if the label is not found in the tuple type. Note that n is base 1.

Example: 

rax_number_t n_aap2 =
  rax_type_tuple_get_index_by_label_nr(some_tuple_type, "aap", 2);