Select property from each object in a list

Viewed 6252

Say I have a List<Tuple>, where the first element in each is a string. Is there an extension function in Kotlin to select the first element from each of these tuples?

I'm looking for something like the C# LINQ syntax for Select:

myTuples.Select(t => t.item1)
1 Answers
Related