I have seen this question for Python, But I have the same question for SML (PolyMl).
I want to create a function to extract from a list of tuples (int, string)
the string value of the tuple with minimum int
.
For example, if I have this list:
l = [('a', 5), ('b', 3), ('c', 1), ('d', 6)]
The output should be 'c'
, because the minimum integer is in the tuple ('c', 1)
. Thank You!