koazee icon indicating copy to clipboard operation
koazee copied to clipboard

return typed slices instead of interface{}

Open nilskuhn opened this issue 5 years ago • 0 comments
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?

nilskuhn avatar Jul 08 '20 14:07 nilskuhn