sdk-common / com.tomtom.online.sdk.common.functional.collections / Lists / concat

concat

@NonNull static fun <A : Any!> concat(@NonNull left: MutableList<A>, @NonNull right: MutableList<A>): MutableList<A>

Concatenates two lists, adding elements of the second list at the end of the first list.

Parameters

left - MutableList<A>: list ot be concatenated

right - MutableList<A>: list ot be concatenated

- lists elements type

Exceptions

NullPointerException - if right is null

Return
MutableList<A>: new list, which contains elements of the first list and elements of the second list