https://folktale.origamitower.com/
const Maybe = require('folktale/maybe');
const compose = require('folktale/core/lambda/compose');
const inc = (x) => x + 1;
const double = (x) => x * 2;
Maybe.Just(1).map(compose(inc, double));
// ==> Maybe.Just(4)
등록된 댓글이 없습니다.