Re: String.join for Iterable, not just CharSequence

2019-04-11 Thread Michael Rasmussen
Hi Stuart Thanks for the references to the discussion regarding .stream() on Iterable; I had been wondering that myself from time to time why they weren't there. It has always bothered my, that converting an Iterable to a Stream is a bit cumbersome, having to go through the spliterator and the St

Re: String.join for Iterable, not just CharSequence

2019-04-10 Thread Stuart Marks
Hi Michael, This seems focused rather too narrowly on the task of joining strings obtained by applying exactly one mapper. It doesn't help if the task is something other than joining, and it doesn't help if there is something other than exactly one mapper. You'd then have to fall back to using

String.join for Iterable, not just CharSequence

2019-04-10 Thread Michael Rasmussen
Hi I was wonder if there had been any considerations adding an overloaded String.join method, that take an Iterable as argument, and a Function String join(CharSequence delimiter, Iterable elements, Function mappingFunction) { Objects