Array util's `fromIterator` actually solves this