Sometimes you want to pass the function to a new scope to execute and the closure around that function is available where it might not be

Reply to this note

Please Login to reply.

Discussion

Sounds like callback, completely forgot about this one

Couldn't you just call the function like you normally would though? I'm new to this and if I'm dumb for this I'm ok with that lol.

If the closure does not exist inside the scope you’d like to call it on then yes, you need to pass it as a variable depending on language of course