Folktale
JSでfunctional programmingするlibrary
website
github
code:js
const Either = require('data.either');
Either.Left(1).cata({
Left: (value) => value + 1,
Right: (value) => value - 1
});
// ==> 2
recordを使ってpattern matchingするのおもろmrsekut.icon