Sylvain Patenaude
12/17/2019, 8:21 PMEnumerable.Select
to convert from enumeration<type1> to enumeration<type2>? Thanks!bezrukov
12/17/2019, 8:25 PM.map { it.totype2() }
Sylvain Patenaude
12/17/2019, 8:30 PMfun transform(t1: Type1): Type2
) because Type1 and Type2 are custom types.
Digging a little further, it looks like associateTo
might do the trick, wouldn't it?Sylvain Patenaude
12/17/2019, 8:34 PMassociateTo
seems to imply a Map
as return type, so not quite what I'm looking for, but closing in...bezrukov
12/17/2019, 8:34 PMbezrukov
12/17/2019, 8:35 PMSylvain Patenaude
12/17/2019, 8:36 PMbezrukov
12/17/2019, 8:37 PMusers.Select(u => u.name)
in kotlin it
users.map { it.name }
or
users.map {u -> u.name}
which make it more similar to c#