How to create a list from list of list using scala? -
i have following list:
list(list(vmnic4), list(vmnic5))
i want change
list(vmnic4,vmnic5)
how do using scala??
you can use flatten
:
list(list(vmnic4), list(vmnic5)).flatten
i have following list:
list(list(vmnic4), list(vmnic5))
i want change
list(vmnic4,vmnic5)
how do using scala??
you can use flatten
:
list(list(vmnic4), list(vmnic5)).flatten
Comments
Post a Comment