Member References

You can pass a member reference as a function argument.

Member references—function references, property references and constructor references—can replace trivial lambdas that simply call the corresponding function, property or constructor.

End of sample. See AtomicKotlin.com for full early-access book.



Previous          Next

©2018 Mindview LLC. All Rights Reserved.