// Java: Stream.of("a1", "a2", "a3") .findFirst() .ifPresent(System.out::println);
// Kotlin: sequenceOf("a1", "a2", "a3").firstOrNull()?.apply(::println)