Type inference when map with generic function

This type for members is unlikely to be supported, currently you have to resort to extension functions to gain similar functionality.
See also this thread.