Title
a

APXEOLOG

12/03/2018, 4:26 PM
Guys, i want to execute some code only once, i wonder if there is any way to implement function like
...
once { some code ... }
...
r

Ruckus

12/03/2018, 5:05 PM
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

bartvh

12/03/2018, 5:18 PM
you could use a lazy that returns Unit
h

henrik

12/10/2018, 6:29 AM
run { }