Skip to content

Instantly share code, notes, and snippets.

View francisrstokes's full-sized avatar
🎥
Low Byte Productions on YouTube

Francis Stokes francisrstokes

🎥
Low Byte Productions on YouTube
View GitHub Profile
@francisrstokes
francisrstokes / Either.js
Last active October 18, 2018 14:30
Monads
const daggy = require('daggy');
const {identity} = require('ramda');
const Either = daggy.taggedSum('Either', {
Left: ['__value'],
Right: ['__value'],
});
Either.of = Either.Right;