koazee
koazee copied to clipboard
return typed slices instead of interface{}
trafficstars
It would be nice if it would be possible to use methods like Map() or Filter() and get back a slice from the stream whose elements are typed like the elements in the original slice.
Actually calling .Do().Out().Val() on a mapped or filtered stream provides an empty interface.
Am I missing something or isn't it possible at the moment to retrieve typed slices from Stream?