or let(::loveThePet)
# getting-started
m
or let(::loveThePet)
☝️ 2
p
Thanks @Matheus i`ll probably stick to the first approach you suggested .let{ method(it) }
👍 1
m
I think that's the best approacah in Kotlin, as you can do stuff like
Copy code
getHuman()
.let { marryTo(it, human2) }
it wouldn't be possible to translate this from Elixir, which is a bit more idiomatic imo
Copy code
getHuman()
|> marryTo(human2)
Unless you use some sort of currying library that curries functions backwards somehow? lol