waylonbrown
11/03/2017, 7:37 PM.map
with an actual Map()
? I have a function that returns a Map<A, B>, so how can I use .map()
to traverse this? This doesnt work:
myFunctionReturningMap()
.map { myFunctionTakingAKeyValuePair(it) }
myFunctionTakingAKeyValuePair(first: A, second: B) {}
I didn't necessarily think that would work but am not sure how to take it
and extract the key/value pair from it to be used in a method