What is an Applicative Functor?
masterAn applicative functor is a pointed functor that provides an ap method. This interface allows you to apply functions contained within one functor to the values contained within another functor.
Unlike Monads, which are sequential (the next step depends on the result of the previous one), Applicatives allow for independent, parallel execution. This makes them ideal for scenarios like multiple independent API calls or multiple independent DOM lookups, where you want all operations to trigger simultaneously rather than waiting for each to finish sequentially.
Container.of(add(2)).ap(Container.of(3));
// Container(5)