Screen Shot 2019-10-11 at 2.57.02 PM.png
# announcements
m
Screen Shot 2019-10-11 at 2.57.02 PM.png
l
What’s the error?
It looks like it’s not able to evaluate the type of that lambdas
m
variable must be initialized
trying to write a strategy pattern
l
Just move them before the map 🙂
d
(nvm, i was being blind)
😂 1
m
Shitt!! Thats why I should stop writing code while drunk
🍻 3
🙂
thanks guys
so to invoke this I just need to do .invoke with params, right?
l
or just
function()
m
function()
is old fashioned 😛 JK
l
there’s no
.
Just use the var name with
()
m
🕺
d
(which is a convention-operator for
.invoke()
)
l
I’d rather avoid going with
function.invoke()
when I can go with
function()
d
Definitely. It's just good to know what it does under the hood. This way you can add this operator to your own classes as well, if you need to.
m
Cant see the error but it still says 1 error found, help
l
line 12
missing
->
🤦🏼‍♂️ those are not questions which are meant to end up here. Com’on!
😭 1
👆 1
m
Time to shut my system for somtime🤐