Ensure failsafe combination using monoids

Share this video with your friends

Send Tweet

In this video we define monoids and promote our semigroups

Jason Gretz
Jason Gretz
~ 6 years ago

Should the example for all use conjunction? Similar to the concat method on the All semigroup.

const all = xs =>
    xs.reduce((acc, x) => acc && x, true)

otherwise, all([true, false, true]) // yields 3