public static <T> T[] concat(T[] first, T[] second) { return Stream.concat( Stream.of(first), Stream.of(second) ).toArray(i -> (T[]) Arrays.copyOf(new Object[0], i, first.getClass())); }
标签:oar cat get turn 个数 post pos 数组 concat
public static <T> T[] concat(T[] first, T[] second) { return Stream.concat( Stream.of(first), Stream.of(second) ).toArray(i -> (T[]) Arrays.copyOf(new Object[0], i, first.getClass())); }
标签:oar cat get turn 个数 post pos 数组 concat
原文地址:https://www.cnblogs.com/R4mble/p/8407908.html