Previous Up Next

This function searches in the list of 2-tuples the one which first element is the same (case unsensitiv) string than the specific _string_ (it performs a 'strcmpi' test). It this tuple is found, the function returns the second element of the tuple, else it returns nil.

u0 switchstri (
[[S u0] r1] _list_
S _string_

list of 2-tuples whose first element is a string
string to search in the list
Return value

value associated to the _string_