Guys, i want to execute some code only once, i won...
# announcements
a
Guys, i want to execute some code only once, i wonder if there is any way to implement function like
Copy code
...
once { some code ... }
...
r
It's not clear what you want. You're
once
looks like a higher order function, so do you want it to only run the first lambda passed to it?
b
you could use a lazy that returns Unit
h
run { }
225 Views