I was wondering what would be the most concise and efficient way to create a PersistentVector from a single element?
Is it
PersistentVector.ofIter(Collections.singletonList(elem));
or
PersistentVector.empty().append(elem)
or is there some simpler way?
I was looking for a factory method with a varargs signature, so that something like
PersistentVector.of(elem1, elem2, elem3)
becomes possible.
I apologize if opening an issue is not the right way to ask for support.
Best regards,
Sebastian
Hi there,
I was wondering what would be the most concise and efficient way to create a PersistentVector from a single element? Is it
PersistentVector.ofIter(Collections.singletonList(elem));
orPersistentVector.empty().append(elem)
or is there some simpler way?I was looking for a factory method with a varargs signature, so that something like
PersistentVector.of(elem1, elem2, elem3)
becomes possible.I apologize if opening an issue is not the right way to ask for support. Best regards, Sebastian