So, I am writing a method that returns List<V>
. However, the list I made in the method is List<Vertex<V>>
. I was wondering if there was a way to convert List<Vertex<V>>
to List<V>
to match the return type other than just removing the "Vertex" part. Thank!
user4060080
source
to share