Skip to content

Instantly share code, notes, and snippets.

@marcinOz
Created June 10, 2020 18:17
Show Gist options
  • Save marcinOz/c1364a4738e5d5f90a2d9733f35189c3 to your computer and use it in GitHub Desktop.
Save marcinOz/c1364a4738e5d5f90a2d9733f35189c3 to your computer and use it in GitHub Desktop.
extension KotlinExt<T> on T {
A let<A>(A Function(T) f) => f(this);
T also(void Function(T) f) {
f(this);
return this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment