How to use the sanctuary.Right function in sanctuary

To help you get started, we’ve selected a few sanctuary examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Risto-Stevcev / lazy-either / test / either.js View on Github external
LazyEither.Right(4)['fantasy-land/ap'](LazyEither.Right(R.multiply(3))).value(res => {
      expect(res).to.deep.equal(S.Right(12))
      done()
    })
  })
github Risto-Stevcev / lazy-either / test / either.js View on Github external
LazyEither.Right(3)[FL.chain](lifted).value(res => {
      expect(res).to.deep.equal(S.Right(9))
      done()
    })
  })
github Risto-Stevcev / lazy-either / test / either.js View on Github external
LazyEither.Right(1)[FL.map](R.add(7)).value(res => {
      expect(res).to.deep.equal(S.Right(8))
      done()
    })
  })
github Risto-Stevcev / lazy-either / examples / readme1.js View on Github external
            : setTimeout(() => resolve(S.Right(val)), ms)
})
github Risto-Stevcev / lazy-either / src / either.js View on Github external
LazyEither['fantasy-land/of'] = LazyEither.Right = function(x) {
  return new LazyEither(S.T(S.Right(x)))
}