Mark
04/12/2021, 2:27 AMAny? or Unit for the return type? I guess Any? is the appropriate type, but I wonder if it adds confusion for example in private functions where you know the return type of the lambda is always Unit.
1. Any? always
2. Unit always
3. Any? when public, Unit when private and possibleTomasz Krakowiak
04/12/2021, 2:37 AMfun <T> foo(..., f : (...)->SomeTypeExpression1<T>) : SomeTypeExpression2<T>Tomasz Krakowiak
04/12/2021, 2:37 AMUnitephemient
04/12/2021, 3:41 AM{ foo() } when passing it onMark
04/12/2021, 10:47 AMAny? so they don’t have to?ephemient
04/12/2021, 2:09 PM