Apply multiple functors as arguments to a function (Applicatives)

Share this video with your friends

Send Tweet

We find a couple of DOM nodes that may or may not exist and run a calculation on the page height using applicatives.

Tre' Codez
Tre' Codez
~ 4 years ago

I had no idea you can do this:

const $ = `selector` =>
    Either.of({`selector`, height: 10})

It's not just a computed prop, but what is it??

Tre' Codez
Tre' Codez
~ 4 years ago

Wait, nvm...it looks correct in Plunkr, but I believe it is indeed incorrect in the Transcript.