You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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));
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
The text was updated successfully, but these errors were encountered: