Java8 (方法一)
Stream.of(1, 2, 3, 4, 5, 6, 7, 8, 9).forEach(i -> Stream.concat(Stream.of(1, 2, 3, 4, 5, 6, 7, 8, 9).limit(i).map(j -> String.format("%s * %s = %s\t", j, i, j * i)), Stream.of("\n")).forEach(System.out::print));
Java8 (方法二)
System.out.println(Stream.of(1, 2, 3, 4, 5, 6, 7, 8, 9).map(i -> Stream.of(1, 2, 3, 4, 5, 6, 7, 8, 9).limit(i).map(j -> String.format("%s * %s = %s", j, i, j * i)).collect(Collectors.joining("\t"))).collect(Collectors.joining("\n")));
Spring Reactor
Flux.range(1, 9).concatMap(i -> Flux.range(1, i).map(j -> String.format("%s * %s = %s\t", j, i, j * i)).concatWithValues("\n")).subscribe(System.out::print);
JavaScript
console.info([1,2,3,4,5,6,7,8,9].map(i=>[1,2,3,4,5,6,7,8,9].slice(0,i).map(j=>`${j} * ${i} = ${i * j}`).join('\t')).join('\n'))