xenoterracide
myMethod Function { foo -> bar }
myMethod( foo -> bar )
Evgeniy Zaharov
public class TestF { public void test(Function<Integer, Integer> action, Integer value) { action.apply(value); } }
val instance = TestF() instance.test( { it * it }, 123)
val instance = TestF() instance.test(123) { it * it }
assertThat(dump).extracting( Function { it.averageIap }, Function { it.averageRespitoryRate }, Function { it.averageTemperature }, Function { it.urineVolumeDelta }, Function { it.mrn }, Function { it.start }, Function { it.end } ).containsExactly(1.0, 2.0, 3.0, 4.0, "a", start, end)
.extracting(Function<FhirConfig, Any?> { it.endpoint }, Function<FhirConfig, Any?> { it.version })
A modern programming language that makes developers happier.